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<stdio.h>
int main()
{
long long int a,b,c;
int T;
scanf("%d",&T);
for(int i=0;i<T;i++){
scanf("%lld %lld %lld",&a,&b,&c);
if(a>b) a^=b^=a^=b;
if(b>c) b^=c^=b^=c;
printf("%lld",(long long int)(a+b)*(a+b)+c*c);
}
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... |