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