From fd7e5fd5482a869b2754dcb38d39e704baefd933 Mon Sep 17 00:00:00 2001 From: heerucan Date: Thu, 30 Dec 2021 18:45:27 +0900 Subject: [PATCH] [BOJ] ATM(#1) --- .../11399.py" | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 "BOJ/\354\225\214\352\263\240\353\246\254\354\246\230/11399.py" diff --git "a/BOJ/\354\225\214\352\263\240\353\246\254\354\246\230/11399.py" "b/BOJ/\354\225\214\352\263\240\353\246\254\354\246\230/11399.py" new file mode 100644 index 0000000..42c27c3 --- /dev/null +++ "b/BOJ/\354\225\214\352\263\240\353\246\254\354\246\230/11399.py" @@ -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))