# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
5323 |
2014-03-23T08:52:02 Z |
baneling100 |
개미 (GA4_ant) |
C++ |
|
64 ms |
1088 KB |
#include <stdio.h>
int t;
long long a, b, c, ans;
int main(void)
{
int i;
scanf("%d",&t);
for(i=1 ; i<=t ; i++)
{
scanf("%lld %lld %lld",&a,&b,&c);
ans=(a+b)*(a+b)+c*c;
if(ans>(b+c)*(b+c)+a*a)
ans=(b+c)*(b+c)+a*a;
if(ans>(c+a)*(c+a)+b*b)
ans=(c+a)*(c+a)+b*b;
printf("%lld\n",ans);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
40 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
1088 KB |
Output is correct |
2 |
Correct |
40 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
2 |
Correct |
56 ms |
1088 KB |
Output is correct |
3 |
Correct |
52 ms |
1088 KB |
Output is correct |
4 |
Correct |
48 ms |
1088 KB |
Output is correct |
5 |
Correct |
64 ms |
1088 KB |
Output is correct |