Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109577 | 李明秦 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 268 KB | 682 | 2025-02-09 15:24:25 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if((a+b>c)||(a-b>c)||(b+c>a)||(b-c<a)||(a+c>b)||(a-c<b)){ if(a*a==b*b+c||b*b==a*a+c||c*c==a*a+b*b){ printf("直角"); }else if(a==b&&b==c){ printf("等角"); }else if(a==b||b==c||a==c){ printf("等腰"); }else{ printf("一般"); } }else{ printf("No"); } return 0; }
------Input------
12 19 20
------Answer-----
Simple Triangle
------Your output-----
一般