Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
8163 | 邓小龙 | 11判断三角形 | C++ | Wrong Answer | 0 MS | 252 KB | 617 | 2025-06-14 20:15: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,s,d; cin>>a>>s>>d; if(a+s-d<0||s+d-a<0||a+d-s<0) cout<<"No"; else if(a*a+s*s==d*d ||a*a+d*d==s*s || s*s+d*d==a*a) cout<<"Right Triangle"; else if(a==s&&s==d) cout<<"Equilateral Triangle"; else if(a==d||d==s||s==d) cout<<"Isosceles Triangle"; else cout<<"Simple Triangle"; return 0; }
------Input------
14 14 8
------Answer-----
Isosceles Triangle
------Your output-----
Simple Triangle