# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20199 | jjim9417 | 개미 (GA4_ant) | C++98 | 62 ms | 16 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 <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main(void){
int test;
scanf("%d",&test);
for (int i=0;i<test;i++){
int arr[3];
scanf("%d%d%d",&arr[0],&arr[1],&arr[2]);
sort(arr,arr+3);
printf("%llu\n",(unsigned long long)(arr[0]+arr[1])*(arr[0]+arr[1])+arr[2]*arr[2]);
}
return 0;
}
Compilation message (stderr)
# | 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... |