# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
16363 |
2015-08-21T15:21:48 Z |
eaststar |
개미 (GA4_ant) |
C++14 |
|
90 ms |
1720 KB |
#include <bits/stdc++.h>
using namespace std;
long long a[3];
int main(){
int i,t;
scanf("%d",&t);
for(;t--;){
for(i=0;i<3;++i)scanf("%lld",a+i);
sort(a,a+3);
printf("%lld\n",(a[0]+a[1])*(a[0]+a[1])+a[2]*a[2]);
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
25 ms |
1720 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
50 ms |
1720 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
53 ms |
1720 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1720 KB |
Output is correct |
2 |
Correct |
0 ms |
1720 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
90 ms |
1720 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
70 ms |
1720 KB |
Output is correct |
2 |
Correct |
58 ms |
1720 KB |
Output is correct |
3 |
Correct |
36 ms |
1720 KB |
Output is correct |
4 |
Correct |
61 ms |
1720 KB |
Output is correct |
5 |
Correct |
77 ms |
1720 KB |
Output is correct |