풀이
어떤 수의 뒤에서부터 이어지는
예를 들어
팩토리얼에서는
따라서
코드
def main():
N = int(input())
exp = 0
for i in range(1, N + 1):
while i % 5 == 0:
i //= 5
exp += 1
print(exp)
main()어떤 수의 뒤에서부터 이어지는
예를 들어
팩토리얼에서는
따라서
def main():
N = int(input())
exp = 0
for i in range(1, N + 1):
while i % 5 == 0:
i //= 5
exp += 1
print(exp)
main()