Advertisement
noshin98

uva 11936

Jul 5th, 2016
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int n,i,a,b,c;
  5.     while(scanf("%d",&n)==1)
  6.     {
  7.         for(i=1;i<=n;i++)
  8.         {
  9.             scanf("%d%d%d",&a,&b,&c);
  10.             if(a+b>c)
  11.             {
  12.                 printf("OK\n");
  13.             }
  14.            else
  15.             {
  16.                 printf("Wrong!!\n");
  17.             }
  18.         }
  19.     }
  20.     return 0;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement