# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
2266 | | zyslee | 개미 (GA4_ant) | C++98 | | 61 ms | 884 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()
{
long long int n, a, b, c, i;
scanf("%lld", &n);
for(i=1;i<=n;i++){
scanf("%lld %lld %lld", &a, &b, &c);
if(a>=b && a>=c) printf("%lld\n", a*a+(b+c)*(b+c));
else if(b>=a && b>=c) printf("%lld\n", b*b+(a+c)*(a+c));
else if(c>=a && c>=b) printf("%lld\n", c*c+(a+b)*(a+b));
}
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... |