# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
2263 | zyslee | 개미 (GA4_ant) | C++98 | 0 ms | 0 KiB |
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>
int main()
{
__int64 n, a, b, c, i;
scanf("%I64d", &n);
for(i=1;i<=n;i++){
scanf("%I64d %I64d %I64d", &a, &b, &c);
if(a>b && a>c) printf("%I64d\n", a*a+(b+c)*(b+c));
if(b>a && b>c) printf("%I64d\n", b*b+(a+c)*(a+c));
if(c>a && c>b) printf("%I64d\n", c*c+(a+b)*(a+b));
}
return 0;
}