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>
unsigned long long i,t,x,y,z;unsigned long long ant(unsigned long long x,unsigned long long y,unsigned long long z){scanf("%llu%llu%llu",&x,&y,&z);if(x<=z&&y<=z)return(x+y)*(x+y)+z*z;else if(x<=y&&z<=y)return(x+z)*(x+z)+y*y;else return(y+z)*(y+z)+x*x;}int main(){scanf("%llu",&t);for(i=1;i<=t;i++){printf("%llu\n",ant(x,y,z));}}
# | 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... |