summaryrefslogtreecommitdiff
path: root/231A/main.cpp
blob: 25c8637e3306181c80fff203ce4dfbc3977c2c6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include <string>

using namespace std;
int main(){
        int a; 
        int score=0;
        string str; 
        getline(cin, str,'\n');
        a = stoi(str);
        for(int i = 0; i < a; i++){
                getline(cin, str,'\n');
                int score2=0;
                for(int j = 0; j < str.size(); j++){
                       if(str.at(j) == '1'){
                               score2++;
                       } 
                }
                if(score2 >= 2){
                        score++;
                }
        }
        cout<<score;
        return 0;
}