Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int n, i;
- scanf("%d", &n);
- int Quebrou = 0;
- for(i = 0; i < n; i++) {
- int L, C;
- scanf("%d %d", &L, &C);
- if(L > C)
- Quebrou += C;
- }
- printf("%d\n", Quebrou);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement