| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159026 | 谭鑫哲 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 272 KB | 710 | 2026-08-25 10:33:34 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b>c&&a-b<c){ if(a==b&&b==c){ cout<<"等边三角形"; } else if(a==b||a==c||b==c){ cout<<"等腰三角形"; } else if(a*a==b*b+c*c||b*b==a*a+c*c||c*c==a*a+b*b){ cout<<"直角三角形"; } else{ cout<<"一般三角形"; } } else{ cout<<"NO"; } return 0; }
------Input------
12 19 20
------Answer-----
Simple Triangle
------Your output-----
一般三角形