OJ-Problems-Source/HDOJ/2039_autoAC.cpp

18 lines
329 B
C++
Raw Normal View History

#include<stdio.h>
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
int m;
double a,b,c;
cin>>m;
while(m--){
cin >> a >> b >> c;
if(a>b) swap(a,b);
if(b>c) swap(b,c);
if(a+b>c) cout << "YES" << endl;
else cout << "NO" << endl;
}
}