Hello World
Thursday, 10 May 2012
UVa 11936 The Lazy Lumberjacks Solution
#include<stdio.h>
int main()
{
int a,b,c,i,t;
while(scanf("%d",&t)==1)
{
for(i=0;i<t;i++)
{
scanf("%d%d%d",&a,&b,&c);
if(a+b<=c || b+c<=a || a+c<=b)
printf("Wrong!!\n");
else
printf("OK\n");
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment