# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2327 |
2013-07-21T02:42:56 Z |
rbwhddl2000 |
개미 (GA4_ant) |
C++ |
|
65 ms |
884 KB |
#include<stdio.h>
int main()
{
int n, i;
long long mini=99999999999, k, a, b, c;
scanf("%d", &n);
for(i=1;i<=n;i++){
mini = 99999999999;
scanf("%lld %lld %lld", &a, &b, &c);
if(a*b<mini)mini=a*b;
if(b*c<mini)mini=b*c;
if(c*a<mini)mini=c*a;
k = a*a + b*b + c*c + 2 * mini;
printf("%lld\n", k);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
47 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 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 |
54 ms |
884 KB |
Output is correct |
2 |
Correct |
48 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
58 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
65 ms |
884 KB |
Output is correct |
2 |
Correct |
59 ms |
884 KB |
Output is correct |
3 |
Correct |
61 ms |
884 KB |
Output is correct |
4 |
Correct |
56 ms |
884 KB |
Output is correct |
5 |
Correct |
54 ms |
884 KB |
Output is correct |