#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
while(n--)
{
double a,b,c;
double temp;
scanf("%lf%lf%lf",&a,&b,&c);
if(a<b)
{
temp=a;
a=b;
b=temp;
}
if(a<c)
{
temp=a;
a=c;
c=temp;
}
if(b<c)
{
temp=b;
b=c;
c=temp;
}
if(a<0||b<0||c<0||b+c<=a)
{
printf("no\n");
}
else
{
printf("yes\n");
}
}
return 0;
}
机试题2018夏令营-1--判断是不是三角形
最新推荐文章于 2022-12-15 20:04:32 发布