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.
20 lines
284 B
20 lines
284 B
#include <iostream>
|
|
using namespace std;
|
|
|
|
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;
|
|
}
|
|
|