Friday, June 10, 2016

UVA 11936 - The Lazy Lumberjacks

#include<bits/stdc++.h>
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
   int a , b , c, t;
   cin>>t;
   while(t--){
        cin>>a>>b>>c;
        if((a+b>c) &&(b+c>a) &&(a+c>b)) cout<<"OK\n";
        else cout<<"Wrong!!\n";
   }
    return 0;
}

No comments:

Post a Comment