Advertisement
Ahnaf37

Untitled

Feb 16th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int n,x,y=0,i,sum=0,j,k,l;
  5. scanf("%d",&n);
  6. for(i=1;i<=n;i++)
  7. {
  8. scanf("%d %d %d",&j,&k,&l);
  9. sum=sum+j+k+l;
  10. if(sum>=2)
  11. {
  12. x=1;
  13. y=y+x;
  14. }
  15. else
  16. {
  17. continue;
  18. }
  19. }
  20. printf("%d",y);
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement