Submission #2267

# Submission time Handle Problem Language Result Execution time Memory
2267 2013-07-21T00:45:49 Z 6590f1 개미 (GA4_ant) C++
22 / 100
56 ms 884 KB
#include<stdio.h>
int main()
{
    int a,b,c,k,n,i;
    scanf("%d",&n);
    for(i=1;i<=n;i++){
        scanf("%d %d %d",&a,&b,&c);
        k=(a+b)*(a+b)+(c*c);
        if((a+c)*(a+c)+(b*b)<k)k=(a+c)*(a+c)+(b*b);
        printf("%d\n",k);
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 40 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 44 ms 884 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 44 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 51 ms 884 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 56 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 -