Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
108243 | 曹春贵 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 272 KB | 619 | 2025-01-20 01:26:53 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b>c&&a+c>b&&b+c>a) { if(a==b&&b==c) { cout<<"Equilateral Triangle"; } else if(a==b||a==c||b==c) { cout<<"Isosceles Triangle"; } else if ((a*a+b*b==c*c)||(a*a+c*c==b*b)||(b*b+c*c==a*a)) { cout<<"Right Triangle"; } else { cout<<"Simple Triangle"; } } else { cout<<"NO"; } return 0; }
------Input------
9 19 5
------Answer-----
No
------Your output-----
NO