
import sys
n = int(input())
times = list(map(int, sys.stdin.readline().split()))
times.sort()
sort_sum = []
tmp = 0
for i in times:
tmp += i
sort_sum.append(tmp)
print(sum(sort_sum))'HELLO WORLD > BAEKJOON' 카테고리의 다른 글
| 백준 | 1181 단어 정렬 (0) | 2025.01.18 |
|---|---|
| 백준 | 1026 보물 (0) | 2025.01.18 |
| 백준 | 9656 돌 게임 2 (0) | 2025.01.18 |
| 백준 | 9655 돌 게임 (0) | 2025.01.18 |
| 백준 | 25304 영수증 (0) | 2025.01.18 |