Friday, May 1, 2015

UVa 11936. The Lazy Lumberjacks

#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define sf scanf
#define pf printf
#define PI 2*acos(0.0)

int main()
{
   int t;
   sf("%d",&t);
   while(t--)
   {
       ll a, b, c;
       sf("%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;
}

No comments:

Post a Comment

Compare equality of two string in C

#include <stdio.h> #include<string.h> int main() {     char* country = "Bangladesh";     char* country2;     ...