Submission #2319

# Submission time Handle Problem Language Result Execution time Memory
2319 2013-07-21T02:35:12 Z rbwhddl2000 개미 (GA4_ant) C++
0 / 100
57 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++){
            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 47 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 47 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 45 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 49 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 52 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 57 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -