karlangadas

231A-Team

Dec 27th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <string>
  4. #include <cstring>
  5. using namespace std;
  6.  
  7. int main() {
  8.     int n,n1,n2,n3,ans=0;
  9.     cin>>n;
  10.     while(n--){
  11.         cin>>n1>>n2>>n3;
  12.         if ((n1+n2+n3)>1)
  13.             ans++;
  14.     }
  15.     cout<<ans<<endl;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment