Advertisement
rengetsu

Codeforces_231A

Jul 19th, 2018
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. //Codeforces Round 231A
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     int n, p[1001], v[1001], t[1001], sum, answ=0;
  7.     cin >> n;
  8.     for(int i=0;i<n;i++)
  9.     {
  10.         cin >> p[i] >> v[i] >> t[i];
  11.         sum=p[i]+v[i]+t[i];
  12.         if(sum>=2){answ++;}
  13.     }
  14.     cout << answ;
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement