Submission #2372

# Submission time Handle Problem Language Result Execution time Memory
2372 2013-07-21T04:23:45 Z swh0329 개미 (GA4_ant) C++
0 / 100
56 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+b)*(a+b)+(c*c));
        m=Min(m, (a+c)*(a+c)+(b*b));
        m=Min(m, (a*a)+(b+c)*(b+c));
        m+=c;
        printf("%d\n", m);
    }
    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 47 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 43 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 -
# Verdict Execution time Memory Grader output
1 Incorrect 47 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 56 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -