Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main() {
- int NumC, Min, Cont1 =0, Cont2 = 0, Total = 0,i;
- scanf("%d %d", &NumC, &Min);
- int __Competidores[NumC];
- for(i=0; i<NumC; i++) {
- scanf("%d %d", &Cont1, &Cont2);
- Cont1 += Cont2;
- __Competidores[i] = Cont1;
- if(__Competidores[i] >= Min) {
- Total++;
- }
- }
- printf("%d", Total);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement