#include<stdio.h>
#include<math.h>
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if(a+b>c && a+c>b && b+c>a && a>0 && b>0 && c>0){
if(pow(a,2)+pow(b,2)==pow(c,3) || pow(a,2)+pow(c,2)==pow(b,2) || pow(b,2)+pow(c,2)==pow(a,2)){
printf("yes\n");
}
else{
printf("no\n");
}
}
else{
printf("not a triangle\n");
}
return 0;
}
1-6 是否能组成三角形?
最新推荐文章于 2023-11-09 12:40:35 发布