Code for USACO practice problems
cpp
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.

21 lines
284 B

3 years ago
#include <iostream>
using namespace std;
3 years ago
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;
}