mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
22 lines
246 B
Python
22 lines
246 B
Python
def problem_p02766(input_data):
|
|
n, k = input_data.split()
|
|
|
|
n = int(n)
|
|
|
|
k = int(k)
|
|
|
|
count = 0
|
|
|
|
while True:
|
|
|
|
if n == 0:
|
|
|
|
break
|
|
|
|
else:
|
|
|
|
n = n // k
|
|
|
|
count += 1
|
|
|
|
return count
|