Uva 11936 Solution

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n, i;
    while(cin >> n && n >= 2 && n <= 20)
    {
        for(i=1;i<=n;i++)
        {
            long long int a, b, c;
            cin >> a >> b >> c;
            if(a+b > c && a+c > b && b+c > a)
            {
                cout << "OK" << endl;
            }
            else
                cout << "Wrong!!" << endl;
        }
    }
    return 0;
}

Comments