| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67323 | 李明择 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 268 KB | 451 | 2024-03-16 13:41:58 |
# include<iostream> # include<cmath> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b>c && a+c>b && b+c>a){ if(a==b&&b==c){ cout<<"Equilateral Triangle"; } else if(a==b||a==c||b==c){ cout<<"Isosceles Triangle"; } else if(a*a+b*b==c*c||a*a+c*c==b*b||b*b+c*c==a*a){ cout<<"Right Triangle"; } else{ cout<<"Simple Triangle"; } } else{ cout<<"no"; } return 0; }
------Input------
9 19 5
------Answer-----
No
------Your output-----
no