Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96887 | 林嘉乐 | 11判断三角形 | C++ | Wrong Answer | 1 MS | 272 KB | 434 | 2024-11-09 18:10:31 |
#include<iostream> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if((a+b>c)&&(abs(a-b)<c)){ if(a==b&&b==c){ cout<<"等边"<<endl; } else if(a==b||b==c||c==a){ cout<<"等腰"<<endl; } else if(a*a+b*b==c*c||b*b+c*c==a*a||a*a+c*c==b*b){ cout<<"直角"<<endl; } else{ cout<<"一般"<<endl; } } else{ cout<<"NO"<<endl; } return 0; }
------Input------
12 19 20
------Answer-----
Simple Triangle
------Your output-----
一般