Skip to content

Commit

Permalink
[BOJ] ATM(#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
heerucan committed Dec 30, 2021
1 parent fa06536 commit fd7e5fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions BOJ/알고리즘/11399.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
n = int(input())
p = list(map(int, input().split()))
p.sort()
result = 0
data = []
for i in range(n):
result += p[i]
data.append(result)
print(sum(data))

0 comments on commit fd7e5fd

Please sign in to comment.