Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97888 高楷伦 11判断三角形 C++ Wrong Answer 1 MS 280 KB 477 2024-11-16 17:25:38

Tests(4/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||b==c||c==a){ cout<<"Isosceles Triangle"; return 0; } if(a+b==c||b+c==a||a+c==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; }


Run Info:

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