Submission #2378

# Submission time Handle Problem Language Result Execution time Memory
2378 2013-07-21T04:32:48 Z richkc2006 개미 (GA4_ant) C++
0 / 100
51 ms 1376 KB
#include<stdio.h>
#include<iostream>

using namespace std;
int main()
{
    int n,i;
    long long a,b,c,d,e,f;
    long long q=99999999;
    scanf("%d", &n);
    for(i=1; i<=n; i++){
        scanf("%d %d %d", &a,&b,&c);
        d=(a+b)*(a+b)+c*c;
        e=(a+c)*(a+c)+b*b;
        f=(b+c)*(b+c)+a*a;
        if(q>=d) q=d;
        else if(q>=e) q=e;
        else if(q>=f) q=f;
        printf("%d\n",q);
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 40 ms 1376 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 45 ms 1376 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 40 ms 1376 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 50 ms 1376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 50 ms 1376 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 51 ms 1376 KB Output isn't correct
2 Halted 0 ms 0 KB -