# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
6800 |
2014-07-07T12:37:36 Z |
qja0950 |
개미 (GA4_ant) |
C++ |
|
60 ms |
1088 KB |
#include <stdio.h>
long long MIN(long long x, long long y) {
if(x>y) return y;
else return x;
}
int main() {
int T;
scanf("%d", &T);
for(int i=1; i<=T; i++) {
long long a, b, c;
scanf("%lld %lld %lld", &a, &b, &c);
printf("%lld\n",
MIN((a+b)*(a+b)+c*c,
MIN((b+c)*(b+c)+a*a, (c+a)*(c+a)+b*b)));
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 ms |
1088 KB |
Output is correct |
2 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
60 ms |
1088 KB |
Output is correct |
2 |
Correct |
48 ms |
1088 KB |
Output is correct |
3 |
Correct |
56 ms |
1088 KB |
Output is correct |
4 |
Correct |
56 ms |
1088 KB |
Output is correct |
5 |
Correct |
44 ms |
1088 KB |
Output is correct |