반응형
www.acmicpc.net/problem/110399
# @Author YoungMinKim
# baekjoon
import sys
N = int(sys.stdin.readline())
x = list(sys.stdin.readline().split())
tmp = list(map(int,x))
tmp = sorted(tmp)
hap = 0
result = []
for i in tmp:
hap+=i
result.append(hap)
print(sum(result))
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 11651 (0) | 2020.09.13 |
---|---|
baekjoon - python - 11650 (0) | 2020.09.13 |
baekjoon - python - 11050 (0) | 2020.09.13 |
baekjoon - python - 11022 (0) | 2020.09.13 |
baekjoon - python - 11021 (0) | 2020.09.13 |
댓글