思路
简单模拟题,千万要注意读题,题目只说是正数,没说是整数。
使用三角形两边之和大于第三边的性质。
代码
#include <cstdio>
#include <iostream>
#include <cstring>
using namespace std;
int main(){
double a, b, c;
int t;
scanf("%d", &t);
while(t --){
scanf("%lf%lf%lf", &a, &b, &c);
if(a+b <= c || b+c <= a || a+c <= b) printf("NO\n");
else printf("YES\n");
}
return 0;
}