Advertisement
Raul_julian

Exec_OBI-[OBI]

Jan 8th, 2014
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main() {
  5.    
  6.     int NumC, Min, Cont1 =0, Cont2 = 0, Total = 0,i;
  7.    
  8.     scanf("%d %d", &NumC, &Min);
  9.    
  10.     int __Competidores[NumC];
  11.    
  12.     for(i=0; i<NumC; i++) {
  13.        
  14.         scanf("%d %d", &Cont1, &Cont2);
  15.         Cont1 += Cont2;
  16.         __Competidores[i] = Cont1;
  17.        
  18.         if(__Competidores[i] >= Min) {
  19.             Total++;
  20.         }
  21.     }  
  22.  
  23.     printf("%d", Total);
  24.    
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement