# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2172 |
2013-07-20T06:56:08 Z |
cki86201 |
개미 (GA4_ant) |
C++ |
|
57 ms |
884 KB |
#include<stdio.h>
#include<algorithm>
long long int a,b,c;
int main()
{
int t;scanf("%d",&t);
while(t--){
scanf("%lld%lld%lld",&a,&b,&c);
long long int ans=0x7fffffffffffffffll;
ans=std::min(ans,a*a+(b+c)*(b+c));
ans=std::min(ans,b*b+(a+c)*(a+c));
ans=std::min(ans,c*c+(a+b)*(a+b));
printf("%lld\n",ans);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
43 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 |
46 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
884 KB |
Output is correct |
2 |
Correct |
49 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
54 ms |
884 KB |
Output is correct |
2 |
Correct |
49 ms |
884 KB |
Output is correct |
3 |
Correct |
55 ms |
884 KB |
Output is correct |
4 |
Correct |
57 ms |
884 KB |
Output is correct |
5 |
Correct |
56 ms |
884 KB |
Output is correct |