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<cstdio>
long long min(long long a,long long b){return a<b?a:b;}
int main(){
long long a,b,c;
int t,i;
scanf("%d",&t);
for(i=0;i<t;i++){
scanf("%lld%lld%lld",&a,&b,&c);
printf("%lld\n",min(min((a+b)*(a+b)+c*c,(a+c)*(a+c)+b*b),(b+c)*(b+c)+a*a));
}
}
# | 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... |