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<algorithm>
long long int a,b,c;
int main()
{
int t;scanf("%d",&t);
while(t--){
scanf("%lld%lld%lld",&a,&b,&c);
long long int ans=0x7fffffffffffffffll;
ans=std::min(ans,a*a+(b+c)*(b+c));
ans=std::min(ans,b*b+(a+c)*(a+c));
ans=std::min(ans,c*c+(a+b)*(a+b));
printf("%lld\n",ans);
}
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... |