| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151002 | 罗钰帆 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 268 KB | 727 | 2026-04-02 19:25:09 |
#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------
12 19 20
------Answer-----
Simple Triangle
------Your output-----
Right Triangle