mirror of
https://github.com/Manoj-HV30/dsa-competitive-programming.git
synced 2026-05-16 19:35:22 +00:00
23 lines
300 B
C++
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;
|
|
}
|