Files
dsa-competitive-programming/codeforces/231A.cpp
T

23 lines
300 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int count = 0;
for(int i = 0; i < n; i++) {
int a, b, c;
cin >> a >> b >> c;
if(a + b + c >= 2) {
count++;
}
}
cout << count << endl;
return 0;
}