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