# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2322 |
2013-07-21T02:37:11 Z |
rbwhddl2000 |
개미 (GA4_ant) |
C++ |
|
59 ms |
884 KB |
#include<stdio.h>
int main()
{
int n, a, b, c, i;
long long mini=99999999999, k;
scanf("%d", &n);
for(i=1;i<=n;i++){
mini = 99999999999;
scanf("%d %d %d", &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 |
41 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
48 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
50 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
59 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
53 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
56 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |