Advertisement
Guest User

soln

a guest
Jul 1st, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. using namespace std;
  7.  
  8.  
  9. int main() {
  10.     /* Enter your code here. Read input from STDIN. Print output to STDOUT */
  11.    int n,i,k,solve =0;
  12.    cin>>n;
  13.    for(i =0;i<n;i++)
  14.    {
  15.        int count = 0;
  16.        for(int j = 0;j<3;j++)
  17.        {
  18.            cin>>k;
  19.            if(k == 1) count++;
  20.        }
  21.        if(count>1)  solve++;
  22.    }
  23.    cout<<solve;
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement