Skip to content

Commit

Permalink
[boj] 1676 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
haremeat committed Nov 29, 2021
1 parent 05c2390 commit 4a66553
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions boj/1676.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 팩토리얼 0의 개수
# 5의 개수를 구하면 된다.
# 625부터는 500을 넘기니 셀 필요가 없다.

import sys

n = int(sys.stdin.readline())

cnt1 = (n // 5)
cnt2 = (n // 25)
cnt3 = (n // 125)

result = cnt1 + cnt2 + cnt3

print(result)

0 comments on commit 4a66553

Please sign in to comment.