Code for USACO practice problems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
285 B

3 years ago
using namespace std;
#include <iostream>
int main() {
int n;
int c = 0;
cin >> n;
for (int i = 0; i < n; i++) {
int k = 0;
for (int j = 0; j < 3; j++) {
int l;
cin >> l;
k += l;
}
if (k >= 2) {
c += 1;
}
}
cout << c << endl;
}