# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
3237 |
2013-08-29T11:18:06 Z |
imsifile |
개미 (GA4_ant) |
C++ |
|
72 ms |
1088 KB |
#include<stdio.h>
#include<algorithm>
long long a[3],t,i;main(){for(scanf("%d",&t);t--;){for(i=3;i--;)scanf("%d",&a[i]);std::sort(a,a+3);printf("%lld\n",(a[0]+a[1])*(a[0]+a[1])+a[2]*a[2]);}}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
52 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
60 ms |
1088 KB |
Output is correct |
2 |
Correct |
60 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
1088 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
60 ms |
1088 KB |
Output is correct |
2 |
Correct |
68 ms |
1088 KB |
Output is correct |
3 |
Correct |
72 ms |
1088 KB |
Output is correct |
4 |
Correct |
56 ms |
1088 KB |
Output is correct |
5 |
Correct |
68 ms |
1088 KB |
Output is correct |