Skip to content

Commit

Permalink
ATM (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezidayzi committed Dec 30, 2021
1 parent 4738a5d commit 9f7e43c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Algorithm/BOJ/11399.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
n = int(input())
arr = list(map(int, input().split()))

answer = 0
arr.sort()

for i in arr:
answer += i * n
n = n-1

print(answer)

0 comments on commit 9f7e43c

Please sign in to comment.