| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151003 | 罗钰帆 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 272 KB | 730 | 2026-04-02 19:34:51 |
#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; cin>>a>>b>>c; if(a+b>c&&b+c>a&&a+c>b){ if(a==b&&a==c&&c==b){ cout<<"Equilateral Triangle"; } else if(a==b||b==c||a==c){ cout<<"Isosceles Triangle"; } else if(a*a+b*b==c*c&&a*a+c*c==b*b&&c*c+b*b==a*a){ cout<<"Right Triangle"; } else{ cout<<"Simple Triangle"; } } else{ cout<<"No"; } return 0; }
------Input------
8 15 17
------Answer-----
Right Triangle
------Your output-----
Simple Triangle