# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2151 |
2013-07-20T05:34:58 Z |
jwvg0425 |
개미 (GA4_ant) |
C++ |
|
62 ms |
884 KB |
#include<stdio.h>
long long int min(long long int a,long long int b){return a<b?a:b;}
int main()
{
int t,i;
long long int a,b,c,m;
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%lld %lld %lld",&a,&b,&c);
m=(a+b)*(a+b)+c*c;
m=min(m,a*a+(b+c)*(b+c));
m=min(m,b*b+(a+c)*(a+c));
printf("%lld\n",m);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
45 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 |
47 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 |
52 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
884 KB |
Output is correct |
2 |
Correct |
60 ms |
884 KB |
Output is correct |
3 |
Correct |
58 ms |
884 KB |
Output is correct |
4 |
Correct |
62 ms |
884 KB |
Output is correct |
5 |
Correct |
60 ms |
884 KB |
Output is correct |