fork download
  1. #include<cstdio>
  2. #include<cstdlib>
  3. int main(void){
  4. int x;
  5. int n=0;
  6. scanf("%d",&x);
  7. while(x>0){
  8. --x;
  9. int v,t;
  10. scanf("%d%d",&v,&t);
  11. if(v>168&&t>63){
  12. n=n+1;
  13. }}
  14. printf("%d",n);
  15. return EXIT_SUCCESS;
  16. }
Success #stdin #stdout 0s 3472KB
stdin
3
169 67
178 56
123 89

stdout
1