# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2321 |
2013-07-21T02:36:28 Z |
rbwhddl2000 |
개미 (GA4_ant) |
C++ |
|
54 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", k);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
44 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
49 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
48 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
54 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
51 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
54 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |