Skip to content

Commit

Permalink
[코딩테스트책] 곱하기 혹은 더하기 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
heerucan committed Apr 1, 2022
1 parent 9f1285d commit bb8fb69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CodingTest/CH3 그리디/곱하기혹은더하기.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
s = list(map(int, input()))
result = 1

for i in s:
if i != 0:
result *= i

print(result)

0 comments on commit bb8fb69

Please sign in to comment.