Run ID:1953
提交时间:2023-12-02 17:44:12
# 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; }