| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67325 | 刘轻松 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 268 KB | 528 | 2024-03-16 13:43:25 |
#include<bits/stdc++.h> //万能头文件 #include<cmath> using namespace std; int main(){ long long 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 || b==c || a==c){ //等腰 cout<<"Isosceles Triangle"; } else if(a*a+b*b==c*c || a*a+c*c==b*b || c*c+b*b==a*a){ //直角 cout<<"Right Triangle"; } else{ //一般三角形 cout<<"Simple Triangle"; } } else{ cout<<"no"; } }
------Input------
9 19 5
------Answer-----
No
------Your output-----
no