Submission #2277

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

using namespace std;

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