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>
#include<stdlib.h>
#include<math.h>
int main()
{
int n, i;
long long a, b, c;
scanf("%d",&n);
for(i=1 ; i<=n ; i++)
{
scanf("%lld %lld %lld",&a,&b,&c);
if(a>b) a^=b^=a^=b;
if(b>c) b^=c^=b^=c;
if(a>c) a^=c^=a^=c;
printf("%lld\n",(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... |