2 条题解
-
0
using namespace std; int main(){ int a,b,c; cout <<"Not triangle"<<endl; if(a*a+b*b==c*c) cout <<"Right triangle"<<endl; if(a*a+b*b>c*c) cout <<"Acute triangle"<<endl; if(a*a+b*b<c*c) cout <<"Obtuse triangle"<<endl; if(a==b||a==c||b==c) cout <<"Isosceles triangle"<<endl; if(a==b&&a==c&&b==c) cout <<"Equilateral triangle"<<endl; else cout <<"Not triangle"<<endl; }
- 1
信息
- ID
- 528
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 6
- 标签
- (无)
- 递交数
- 21
- 已通过
- 11
- 上传者