# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2407 |
2013-07-21T08:28:41 Z |
hana5505 |
개미 (GA4_ant) |
C++ |
|
64 ms |
884 KB |
#include<stdio.h>
int main()
{
long long mn;
int t,i;
long long a,b,c;
scanf("%d",&t);
for(i=1;i<=t;i++){
scanf("%lld %lld %lld",&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("%lld\n",mn);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
46 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
50 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
44 ms |
884 KB |
Output is correct |
2 |
Correct |
53 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 |
58 ms |
884 KB |
Output is correct |
2 |
Correct |
55 ms |
884 KB |
Output is correct |
3 |
Correct |
60 ms |
884 KB |
Output is correct |
4 |
Correct |
55 ms |
884 KB |
Output is correct |
5 |
Correct |
64 ms |
884 KB |
Output is correct |