9 条题解
-
5
服了 错了4遍
#include <iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b>c and a+c>b and b+c>a and a>0 and b>0 and c>0) { if(a*a+b*b==c*c or b*b+c*c==a*a or a*a+c*c==b*b) { cout<<"Yes!"; } else { cout<<"No!"; } } else{ cout<<"Error!"; } return 0; }
-
-5
#include #include //stdio.h using namespace std; double a,b,c; int main() { cin>>a>>b>>c; if(a>0 and b>0 and c>0 and a+b>c and a+c>b and b+c>a){ if(aa+bbcc or aa+c*cbb or bb+cc==aa) cout<<"Yes!"; else{ cout<<"No!"; } }else{ cout<<"Error!"; } return 0; }
- 1
信息
- ID
- 21
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 7
- 标签
- 递交数
- 4472
- 已通过
- 1179
- 上传者