Skip to content

Commit 135318c

Browse files
committed
[BOJ] #15996. 팩토리얼 나누기 / 실버3 / 51분 / 성공
1 parent 070c341 commit 135318c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 15996 : 팩토리얼 나누기
2+
import sys
3+
input = sys.stdin.readline
4+
5+
N, A = map(int, input().split())
6+
k = 0
7+
power = A
8+
9+
while N >= power:
10+
k += N // power
11+
power *= A
12+
13+
print(k)

0 commit comments

Comments
 (0)