# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2394 |
2013-07-21T06:18:52 Z |
alephnull |
개미 (GA4_ant) |
C++ |
|
54 ms |
884 KB |
#include <cstdio>
#include <algorithm>
using namespace std;
int main() {
long long a, b, c;
int t;
scanf("%d", &t);
for (int i = 0; i < t; i++) {
scanf("%lld %lld %lld", &a, &b, &c);
printf("%lld",
min(min(c * c + (a + b) * (a + b), b * b + (a + c) * (a + c)),
a * a + (c + b) * (c + b)));
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
44 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
45 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
47 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
53 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
54 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
52 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |