Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,x,y=0,i,sum=0,j,k,l;
- scanf("%d",&n);
- for(i=1;i<=n;i++)
- {
- scanf("%d %d %d",&j,&k,&l);
- sum=sum+j+k+l;
- if(sum>=2)
- {
- x=1;
- y=y+x;
- }
- else
- {
- continue;
- }
- }
- printf("%d",y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement