http://acm.hdu.edu.cn/showproblem.php?pid=2039
#include <bits/stdc++.h>
using namespace std;
int main()
{
int M;
cin>>M;
for(int i=1;i<=M;i++)
{
double A,B,C;
cin>>A>>B>>C;
if(A+B>C&&A+C>B&&B+C>A)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
return 0;
}
原文:https://www.cnblogs.com/zlrrrr/p/9226207.html