Skip to content

Commit

Permalink
2024-05-10 ATM
Browse files Browse the repository at this point in the history
  • Loading branch information
pu2rile committed May 10, 2024
1 parent f899cda commit 3fa8893
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pu2rile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@
| 2์ฐจ์‹œ | 2024.03.29 | ๊ตฌํ˜„ | [OXํ€ด์ฆˆ](https://www.acmicpc.net/problem/8958) | [#6](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/6#issue-2214931034)|
| 3์ฐจ์‹œ | 2024.04.02 | ๋ฌธ์ž์—ด | [ํฌ๋กœ์•„ํ‹ฐ์•„ ์•ŒํŒŒ๋ฒณ](https://www.acmicpc.net/problem/8958) | [#10](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/10#issue-2220631332)
| 4์ฐจ์‹œ | 2024.04.08 | ์Šคํƒ | [์ œ๋กœ](https://www.acmicpc.net/problem/10773) | [#15](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/15#issue-2229909173)
<<<<<<< Updated upstream
=======
| 5์ฐจ์‹œ | 2024.04.10 | ๊ทธ๋ฆฌ๋”” ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [๊ตญํšŒ์˜์› ์„ ๊ฑฐ](https://www.acmicpc.net/problem/1417) | [#18](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/18#issue-2235862658)
| 6์ฐจ์‹œ | 2024.05.10 | ๊ทธ๋ฆฌ๋”” ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [ATM](https://www.acmicpc.net/problem/11399) | [#]()
>>>>>>> Stashed changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
num = int(input())
arr = list(map(int, input().split()))
arr.sort() #์ž…๋ ฅ๋ฐ›์€ ์ •์ˆ˜ ์˜ค๋ฆ„์ฐจ์ˆœ ์ •๋ ฌ
result = 0
time = 0
for i in range(num):
time += arr[i] #ํ˜„์žฌ ์‚ฌ๋žŒ์ด ๊ธฐ๋‹ค๋ฆฌ๋Š” ์‹œ๊ฐ„์„ ๊ณ„์‚ฐํ•ด์„œ time์— ๋”ํ•จ
result += time #ํ˜„์žฌ ์‚ฌ๋žŒ๊นŒ์ง€์˜ ์ด ๋Œ€๊ธฐ ์‹œ๊ฐ„์„ ๊ฒฐ๊ณผ์— ๋”ํ•จ
print(result)

0 comments on commit 3fa8893

Please sign in to comment.