https://www.acmicpc.net/problem/1037
#Solution
N = int(input())
gcd_list = list(map(int, input().split()))
gcd_list = sorted(gcd_list)
answer = 0
for i in range(len(gcd_list)):
answer += gcd_list[i] * gcd_list[-i-1]
print(answer//len(gcd_list))
'Programming [Python] > 백준 알고리즘 솔루션' 카테고리의 다른 글
#126 백준 파이썬 [1912] 연속합 (1) | 2019.10.01 |
---|---|
#125 백준 파이썬 [1463] 1로 만들기 - 점화식 (0) | 2019.10.01 |
#123 백준 파이썬 [5086] 배수와 약수 (0) | 2019.09.30 |
#122 백준 파이썬 [3053] 택시 기하학 (0) | 2019.09.30 |
#121 백준 파이썬 [3009] 네 번째 점 (0) | 2019.09.30 |