| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68578 | 李雨昊 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 272 KB | 461 | 2024-03-23 22:03:52 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<iomanip> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if (a+b>c || a+c>b || c+b>a){ if (a==b & a==c & b==c){ cout<<"Equilateral Triangle"; } else if(a==b || a==c || b==c){ cout<<"Isosceles Triangle"; } else if (a!=b & a!=c & c!=b){ cout<<"Simple Triangle"; } else { cout<<"Right Triangle"; } } return 0; }
------Input------
8 15 17
------Answer-----
Right Triangle
------Your output-----
Simple Triangle