This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |