Submission #2282

# Submission time Handle Problem Language Result Execution time Memory
2282 2013-07-21T01:09:43 Z heohyun1 개미 (GA4_ant) C++
0 / 100
54 ms 2476 KB
#include <iostream>
#include <stdio.h>

using namespace std;

int main()
{
    int i,n,k=0;
    int a[100000],b[100000],c[100000];
    scanf("%d",&n);
    for(i=0; i<n; i++){
        scanf("%d %d %d",&a[i],&b[i],&c[i]);
    }
    for(i=0; i<n; i++){
        k=0;
        k = (a[i]+b[i]+c[i])*(a[i]+b[i]+c[i]) / 2;
        printf("%d\n",k);
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 41 ms 2472 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 43 ms 2476 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 46 ms 2472 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 46 ms 2472 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 46 ms 2476 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 54 ms 2472 KB Output isn't correct
2 Halted 0 ms 0 KB -