
注意: 输入的边长可能是小数
#include <cstdio>
int main()
{
int n;
double a, b, c;
scanf("%d", &n);
while(n --)
{
scanf("%lf %lf %lf", &a, &b, &c);
if((a+b>c) && (a+c>b) && (b+c>a)) printf("YES\n");
else printf("NO\n");
}
return 0;
}
原文:https://www.cnblogs.com/mjn1/p/11283728.html