Advertisement
Radoan_Ahmed

Untitled

Aug 10th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,i,x,y,z,count=0;
  5.     scanf("%d",&a);
  6.     for(i=0;i<a;i++)
  7.     {
  8.        scanf("%d%d%d",&x,&y,&z);
  9.        if(x==1&&y==1||x==1&&z==1||y==1&&z==1)
  10.        {
  11.            count++;
  12.  
  13.        }
  14.  
  15.     }
  16.      printf("%d\n",count);
  17.      return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement