# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2163 |
2013-07-20T06:13:37 Z |
gs13031 |
개미 (GA4_ant) |
C++ |
|
59 ms |
884 KB |
#include<stdio.h>
long long int t,a,b,c;
int main()
{
int i; long long int x;
scanf("%lld", &t);
for(i=1; i<=t; ++i)
{
scanf("%lld%lld%lld", &a, &b, &c);
x=(a+b)*(a+b) + c*c;
if(x>(b+c)*(b+c) + a*a) x=(b+c)*(b+c) + a*a;
if(x>(c+a)*(c+a) + b*b) x=(c+a)*(c+a) + b*b;
printf("%lld\n", x);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
41 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
49 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
49 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
50 ms |
884 KB |
Output is correct |
2 |
Correct |
54 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
51 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
59 ms |
884 KB |
Output is correct |
2 |
Correct |
56 ms |
884 KB |
Output is correct |
3 |
Correct |
53 ms |
884 KB |
Output is correct |
4 |
Correct |
59 ms |
884 KB |
Output is correct |
5 |
Correct |
59 ms |
884 KB |
Output is correct |