Advertisement
rdsedmundo

obi.c

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