ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#168535 | #1215. 直角三角形 | luojianwei2216 | 100 | 0ms | 1200kb | C++ | 253b | 2023-02-04 13:07:29 | 2023-02-04 13:07:30 |
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
long long A = a * a, B = b * b, C = c * c;
if(A + B == C) cout << A << ' ' << B << ' ' << C;
else cout << a << ' ' << b << ' ' << c;
return 0;
}
Details
小提示:点击横条可展开更详细的信息
Test #1:
score: 50
Accepted
time: 0ms
memory: 1196kb
input:
3 4 5
output:
9 16 25
result:
ok single line: '9 16 25'
Test #2:
score: 50
Accepted
time: 0ms
memory: 1200kb
input:
4 5 6
output:
4 5 6
result:
ok single line: '4 5 6'