Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104522 | 陈铎文 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 272 KB | 506 | 2025-01-05 11:50:33 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b>c and b+c>a and c+a>b){ if(a==b and b==c){ cout<<"Equilateral Triangle"; } else if(a==b or b==c or c==a){ cout<<"Isosceles Triangle"; } else if(a*a+b*b==c*c and b*b+c*c==a*a and c*c+a*a==b*b){ cout<<"Right Triangle"; } else{ cout<<"Simple Triangle"; } } return 0; }
------Input------
8 15 17
------Answer-----
Right Triangle
------Your output-----
Simple Triangle