N = int(input())
arr = list(map(int,input().split()))
arr.sort()
result=0
time=0
for i in range(N):
time += arr[i]
result += time
print(result)
'Algorithm > Python' 카테고리의 다른 글
[Algorithm|Python] 백준 1946번 / 99클럽 19일차 TIL (0) | 2025.02.14 |
---|---|
[Algorithm|Python] 백준 147503번 / 99클럽 18일차 (0) | 2025.02.13 |
[Algorithm|Python] 백준 27961번 / 99클럽 16일차 TIL (0) | 2025.02.11 |
[Algorithm|Python] 백준 15686번 / 99클럽 15일차 TIL (0) | 2025.02.08 |
[Algorithm|Python] 백준 2615번 / 99클럽 14일차 TIL (0) | 2025.02.07 |