Skip to content

Commit c387e77

Browse files
committed
[BOJ] #10733. 제로 / 실버4 / 20분 / 성공
1 parent f95744d commit c387e77

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
K = int(input())
2+
stack = []
3+
for i in range(K):
4+
num = int(input())
5+
stack.append(num)
6+
if num == 0:
7+
stack.pop()
8+
stack.pop()
9+
10+
print(sum(stack))

0 commit comments

Comments
 (0)