Submission #17433

# Submission time Handle Problem Language Result Execution time Memory
17433 2015-12-11T14:09:34 Z atomzeno 개미 (GA4_ant) C++
0 / 100
58 ms 1084 KB
#include<stdio.h>
#include<algorithm>
using namespace std;
int main(){
    int n;
    scanf("%d",&n);
    while(n--){
        int a[3];
        scanf("%d%d%d",&a[0],&a[1],&a[2]);
        sort(a,a+3);
        a[0]+=a[1];
        printf("%d",a[0]*a[0]+a[2]*a[2]);
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 40 ms 1084 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 58 ms 1084 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 41 ms 1084 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 51 ms 1084 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 49 ms 1084 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct
2 Halted 0 ms 0 KB -