Skip to content

Commit

Permalink
2024-04-08 제둜
Browse files Browse the repository at this point in the history
  • Loading branch information
pu2rile committed Apr 7, 2024
1 parent 3e585b5 commit 3d8135b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions pu2rile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
| 1μ°¨μ‹œ | 2024.03.24 | DP | [ν‰λ²”ν•œ λ°°λ‚­](https://www.acmicpc.net/problem/12865) | [#3](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/3#issue-2205834078)|
| 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) | [#]()
9 changes: 9 additions & 0 deletions pu2rile/μŠ€νƒ/제둜.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
k = int(input())
stack = []
for _ in range(k):
n = int(input())
if n == 0:
stack.pop()
else:
stack.append(n)
print(sum(stack))

0 comments on commit 3d8135b

Please sign in to comment.