Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97897 高楷伦 11判断三角形 C++ Accepted 1 MS 276 KB 516 2024-11-16 17:34:16

Tests(10/10):


Code:

# include<iostream> # include<cstdio> # include<iomanip> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a==b&&b==c&&c==a){ cout<<"Equilateral Triangle"; return 0; } if(a==b&&a+b>c||b==c&&b+c>a||c==a&&a+c>b){ cout<<"Isosceles Triangle"; return 0; } if(a*a+b*b==c*c||b*b+c*c==a*a||a*a+c*c==b*b){ cout<<"Right Triangle"; return 0; } if(a+b>c&&b+c>a&&a+c>b){ cout<<"Simple Triangle"; return 0; } else{ cout<<"No"; return 0; } return 0; }