Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2075 | 邓小龙 | 11判断三角形 | C++ | Accepted | 0 MS | 256 KB | 767 | 2023-12-09 17:03:21 |
# include<iostream> using namespace std; int main(){ int a,b,c,temp=0; cin>>a>>b>>c; if(b>a){ temp=a; a=b; b=temp; } if(c>a){ temp=a; a=c; c=temp; } if(a>=b+c){ cout<<"No"<<endl; return 0; } if(a==b||b==c||a==c){ if(a==b==c){ cout<<"Equilateral Triangle"<<endl; } else cout<<"Isosceles Triangle"<<endl; return 0; } if(a*a==b*b+c*c){ cout<<"Right Triangle"<<endl; } else{ cout<<"Simple Triangle"<<endl; } return 0; }