본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 33963번 돈복사

by 현장 2025. 5. 26.

-Code

n = int(input())
n_len = len(str(n))
res = 0

while True:
    n = n * 2
    if n_len < len(str(n)):
        print(res)
        break
    res += 1