#include<iostream>
using namespace std;
int main(){
int n;
cin >> n;
for (int i = 0; i < n; i++){
double a, b, c;
cin >> a >> b >> c;
if (a>0 && a<1000 && b>0 && b<1000 && c>0 && c<1000){
if (a + b>c&&a + c > b&&b + c > a)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
}
return 0;
}
hdu 2039
时间: 2024-10-11 12:46:07