Ad

Thursday, March 21, 2013

Uva 11936 - The Lazy Lumberjacks, programing problem from Uva

Problem ID - 11936,
Problem Name - The Lazy Lumberjacks

 

Problem Description is Here 

 

 #include <stdio.h>

int main()

{

    int a, b, c, i, k, j, 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 && c+a>b)

                printf("OK\n");

            else

                printf("Wrong!!\n");

        }

    }

    return 0;

}


0 comments:

Post a Comment