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>
#define min(x,y) (x<y?x:y)
int main()
{
int T;
long long a, b, c, d, e, f;
scanf("%d", &T);
while(T--)
{
scanf("%lld %lld %lld", &a, &b, &c);
d = (b + c)*(b + c) + a*a;
e = (a + c)*(a + c) + b*b;
f = (a + b)*(a + b) + c*c;
printf("%lld\n", min(d,min(e,f)));
}
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... |