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>
int a,b,c;
int main()
{
freopen("input.txt","r",stdin);
int t;scanf("%d",&t);
while(t--){
scanf("%d%d%d",&a,&b,&c);
int s=std::max(a,std::max(b,c));
printf("%d\n",s*s+(a+b+c-s)*(a+b+c-s));
}
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... |