Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int t;
- scanf("%d", &t);
- while(t--)
- {
- int a, b, c, d;
- scanf("%d %d %d %d", &a, &b, &c, &d);
- if(a + b > c + d) printf("%d\n", a+b);
- else printf("%d\n", c+d);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment