# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2406 |
2013-07-21T08:26:48 Z |
hana5505 |
개미 (GA4_ant) |
C++ |
|
60 ms |
884 KB |
#include<stdio.h>
int main()
{
int t,i,a,b,c,mn;
scanf("%d",&t);
for(i=1;i<=t;i++){
scanf("%d %d %d",&a,&b,&c);
mn=a*a+(b+c)*(b+c);
if(mn>b*b+(a+c)*(a+c)) mn=b*b+(a+c)*(a+c);
if(mn>c*c+(a+b)*(a+b)) mn=c*c+(a+b)*(a+b);
printf("%d\n",mn);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
46 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
47 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
46 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
55 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
54 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
60 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |