Submission #2340

# Submission time Handle Problem Language Result Execution time Memory
2340 2013-07-21T03:38:53 Z swh0329 개미 (GA4_ant) C++
0 / 100
53 ms 884 KB
#include <stdio.h>
#define Min(x,y) x<y?x:y
using namespace std;
int main()
{
    int t;
    int a, b, c, m;
    scanf("%d", &t);
    while(t>0)
    {
        t--;
        m=999999;
        scanf("%d %d %d", &a, &b, &c);
        m=Min(m, a*a+b*b*2+c*c);
        m=Min(m, a*a*2+b*b+c*c);
        m=Min(m, a*a+b*b+c*c*2);
        printf("%d\n", m);
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 42 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 44 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 53 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 53 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 52 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -