Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1952 莫业祁 11判断三角形 C++ Wrong Answer 0 MS 264 KB 767 2023-12-02 17:43:37

Tests(3/10):


Code:

# 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 Traingle"<<endl; } else{ cout<<"Simple Triangle"<<endl; } return 0; }


Run Info:

------Input------
8 15 17
------Answer-----
Right Triangle
------Your output-----
Right Traingle