UVA 11936 - The Lazy Lumberjacks

Problem PDF

Solution:

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include 
#include 
#include
#define ll long long
#define sc scanf
#define pf printf
#define Pi 2*acos(0.0)
using namespace std;
int main()
{
    int t;
   sc("%d",&t);
   while(t--)
   {
       ll a,b,c;
       sc("%lld%lld%lld",&a,&b,&c);
       if(a+b>c && b+c>a && a+c>b)
        pf("OK\n");
       else
        pf("Wrong!!\n");
   }
    return 0;
}

https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11936/11936.cpp