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