Problem:


Score : 200 points

Problem Statement

Takahashi has a deposit of 100 yen (the currency of Japan) in AtCoder Bank.

The bank pays an annual interest rate of 1 % compounded annually. (A fraction of less than one yen is discarded.)

Assuming that nothing other than the interest affects Takahashi's balance, in how many years does the balance reach X yen or above for the first time?

Constraints

 101 \le X \le 10^{18} 

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X

Output

Print the number of years it takes for Takahashi's balance to reach X yen or above for the first time.

Sample Input 1

103

Sample Output 1

3

The balance after one year is 101 yen.

The balance after two years is 102 yen.

The balance after three years is 103 yen.

Thus, it takes three years for the balance to reach 103 yen or above.

Sample Input 2

1000000000000000000

Sample Output 2

3760

Sample Input 3

1333333333

Sample Output 3

1706



Sample input:
103


Sample output:
3

Submission status: Accepted

Solution code:
def atc_165b(X: int) -> int:
    savings = 100
    years = 0

    while savings < X:
        years += 1
        # savings += savings * 0.01 * 100 // 100
        savings += savings // 100
    return years

X = int(input())
print(atc_165b(X))

Submission status: Accepted

Solution code:
X = int(input())

n = 100
year_count = 0

while n < X:
    n += n // 100
    year_count += 1

print(year_count)

Submission status: Accepted

Solution code:
import math

x = int(input())
an = 100
for i in range(1,10000):
  an  = 101*an//100
  if(an>=x):
    print(i)
    break

Submission status: Accepted

Solution code:
X=int(input())
x=100
ans=0
while x<X:
    x=101*x//100
    ans+=1
print(ans)

Submission status: Accepted

Solution code:
# abc165_b
x, money, year = int(input()), 100, 0
while x > money:
	money += money // 100
	year += 1
print(year)

Submission status: Accepted

Solution code:
X = int(input())

money = 100
answer = 0

while money < X:
    money += (money//100)
    answer += 1

print(answer)

Submission status: Accepted

Solution code:
from decimal import Decimal
X=int(input())

c =Decimal(100)
C=0
while c<X:
  c=Decimal(c)*(Decimal(101))//Decimal(100)
  C+=1
print(C)

Submission status: Accepted

Solution code:
x = int(input())
n = 100
ans = 0
while (x > n):
    n += (n//100)
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
x = int(input())

a = 0
m = 100

while(m < x):
    a += 1
    m += m // 100
    
print(a)

Submission status: Accepted

Solution code:
X = int(input())

time = 0
money = 100
while True:
    time += 1
    money += money // 100
    if money >= X:
        print(time)
        break

Submission status: Accepted

Solution code:
x=int(input())
k=100
a=1
for i in range(1,4000):
  k=(101*k)//100
  if k<x:
    a=a+1
print(a)

Submission status: Accepted

Solution code:
x = int(input())
yokin = 100
cnt = 0
while yokin < x:
    yokin = yokin*101//100
    cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
from decimal import Decimal

x = int(input())
money = 100
ans = 0

while 1:
    ans += 1
    money = money + int(money * Decimal(str(0.01)))
    if money >= x:
        print(ans)
        exit()

Submission status: Accepted

Solution code:
x = int(input())
cnt, ans = 100, 0
while cnt < x:
    ans += 1
    cnt = cnt * 101 // 100
print(ans)

Submission status: Accepted

Solution code:
X = int(input())
m = 100
count = 0
import math
while m < X:
  m = m * 101 //100
  count += 1
print(count)

Submission status: Accepted

Solution code:
x = int(input())

taka = 100
count = 0

while taka < x:
    taka = taka * 101 // 100
    count += 1

print(count)

Submission status: Accepted

Solution code:
X = int(input().split()[0])
x = 100
count = 0
while x < X:
    x += x // 100
    count += 1

ans = count
print(ans)

Submission status: Accepted

Solution code:
import math
x=int(input())
p=100
cnt=0
while x>p:
    p+=p//100
    cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
X = int(input())
price = 100
year = 0
while price<X:
    price += price//100
    year += 1
print(year)

Submission status: Accepted

Solution code:
#m,n = map(int,input().split())
#lis = list(map(int,input().split()))
X = int(input())
price = 100
year = 0
while price < X:
    price += price//100
    year += 1
print(year)

Submission status: Accepted

Solution code:
def resolve():
    x = int(input())
    t = 0
    pos = 100
    while True:
        pos += pos // 100
        # print(t, pos)
        t += 1
        if pos >= x:
            break
    print(t)

resolve()

Submission status: Accepted

Solution code:
X = int(input())

price = 100
year = 0

while price < X:
    price += price // 100
    year += 1

print(year)

Submission status: Accepted

Solution code:
import math
k=int(input())
a=100
c=0
while a<k:
    a+=a//100
    c+=1
print(c)

Submission status: Accepted

Solution code:
X = int(input())
ans = 0
m = 100

while(m < X) :
    m += m // 100
    ans += 1 

print(ans)

Submission status: Accepted

Solution code:
depo = 100
X = int(input())
year = 0

while depo < X:
  year += 1
  depo += depo // 100
print(year)

Submission status: Accepted

Solution code:
X = int(input())

count = 0
save = 100

while save < X:
  save += save // 100
  count += 1
  
print(count)

Submission status: Accepted

Solution code:
a = int(input())
count=0
x = 100
while True:
  if x >= a:
    break
  x+=x//100
  count+=1

print(count)

Submission status: Accepted

Solution code:
x = int(input())

ans = 0
yen = 100
while True:
    if yen >= x:
        print(ans)
        break
    yen = yen * 101 // 100
    ans += 1

Submission status: Accepted

Solution code:
X = int(input())
yen = 100
count = 0

while True:
  if yen >= X:
    break
  yen += yen // 100
  count += 1
  
print(count)

Submission status: Accepted

Solution code:
X = int(input())
S = 100
year = 0
while True:
    if S >= X:
        print(year)
        quit()
    S += S // 100
    year += 1

Submission status: Accepted

Solution code:
x=int(input())
cnt=0
money = 100
while(1):
  cnt += 1
  money += money//100
  if money >= x:
    print(cnt)
    quit()

Submission status: Accepted

Solution code:
x = int(input())
m = 100
t = 0
while m < x:
    n = m // 100
    m += n
    t += 1
print(t)

Submission status: Accepted

Solution code:
## import math
X = int(input())
sum = 100
cnt = 0

while(sum < X):
  #sum += math.floor(sum*0.01)
  sum = sum*101//100
  cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
#a = list(map(int,input().split()))
#b = list(map(int,input().split()))

a = int(input())
x = int(100)
count= 0
while a > x:
    count+=1
    x += x//100
print(count)

Submission status: Accepted

Solution code:
X = int(input())
a = 100
year = 0
import math
while True:
    a = a*101//100
    year += 1
    if a >= X:
        break
print(year)

Submission status: Accepted

Solution code:
#ABC165
x = int(input())
a = 100
ans = 0
while a < x:
    a = a*101//100
    ans+=1
print(ans)

Submission status: Accepted

Solution code:
x = int(input())

b = 100
for i in range(1,10**18):
  b += b//100
  if b >= x:
    print(i)
    break

Submission status: Accepted

Solution code:
X = int(input())
ans = 0
money = 100

while money < X:
  money += int(money // 100)
  ans += 1
print(ans)

Submission status: Accepted

Solution code:
X = int(input())

money = 100
year = 0
while money < X:
    year += 1
    money = str(money*101)
    money = int(money[:-2])
    
print(year)

Submission status: Accepted

Solution code:
x = int(input())
en = 100
count = 0

while True:
  count += 1
  en += en // 100
  if en >= x:
    break
print(count)

Submission status: Accepted

Solution code:
from decimal import Decimal
def main():
    x = int(input())
    ans = 0
    a = 100
    while(a<x):
        a += a//100
        ans += 1
    print(ans)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
from itertools import chain
# import numpy as np
# from itertools import combinations as comb
# from bisect import bisect_left, bisect_right, insort_left, insort_right
# from collections import Counter


def solve(X: int):
    m = 100
    for y in range(1, 3761):
        m += m // 100
        if m >= X:
            return y
    return 3761


def main():
    tokens = chain(*(line.split() for line in sys.stdin))
    # X = map(int, input().split())
    # X = input().strip()
    X = int(next(tokens))  # type: int
    answer = solve(X)
    print(answer)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
x = int(input())

an = 100
cnt = 0

while(an < x):
    an += an//100
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
x = int(input())
a = 100
i = 0
while True:
    a += a // 100
    i += 1
    if a >= x:
        break
print(i)

Submission status: Accepted

Solution code:
n = int(input())
a = 100
time = 0
while a < n:
    a += a // 100
    time += 1
print(time)

Submission status: Accepted

Solution code:
a=int(input())
b=100
i=0
while b<a:
  b+= b // 100
  i+=1
print(i)

Submission status: Accepted

Solution code:
X = int(input())
n = 0
money = 100
while money < X:
  money += money // 100
  n += 1
print(n)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
x = int(input())

r = 100
n=0
while True:
  n=n+1
  #r = r+int(r*0.01)
  r = r+int(r//100)
  if r >= x:
    break
print(n)

Submission status: Accepted

Solution code:
x = int(input())
y = 100
year = 0

while y < x:
    y += int(y // 100)
    year += 1

print(year)

Submission status: Accepted

Solution code:
import sys

X = int(input())
a = 100
d = 0
while(a<X):
    a = a * 101 // 100
    d += 1

print(d)

Submission status: Accepted

Solution code:
X = int(input())
money = 100
year = 0
while(money < X):
    money += money//100
    year += 1

print(year)

Submission status: Accepted

Solution code:
x = int(input())

money = 100

ans = 0

while money < x:
    ans += 1
    money += money//100

print(ans)

Submission status: Accepted

Solution code:
x = int(input())

price = 100
count = 0

while price < x :
  price += price//100
  count += 1

print(count)

Submission status: Accepted

Solution code:
import math
x = int(input())

ans = 0
y = 100
while y < x:
    y += y//100
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
x=int(input())

m=100
y=0

while m<x:
  m+=m//100
  y+=1
 
print(y)

Submission status: Accepted

Solution code:
def main(money, X):
    ans = 0
    while money < X:
        money += money//100
        ans += 1
    return ans

if __name__ == '__main__':
    money = 100
    X = int(input())
    ans = main(money, X)
    print(ans)

Submission status: Accepted

Solution code:
X = int(input())
bank = 100
cnt = 0
while bank < X:
    bank = bank + bank//100
    cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
x = int(input())

c = 100
ans = 0

while c < x:
    c = c + (c//100)
    ans += 1
    
print(ans)

Submission status: Accepted

Solution code:
def main():
    # 100*1.01^4000 = 1.9297237e+19
    X = int(input())
    val = 100
    for i in range(4000):
        val = (val*101)//100
        if val >= X:
            print(i+1)
            return


main()

Submission status: Accepted

Solution code:
n = int(input())

cnt = 0
cur = 100
while n > cur:
    cur += cur // 100
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
X = int(input())

P = 100
step = 0
while P < X:
    P += P // 100
    step += 1

print(step)

Submission status: Accepted

Solution code:
X=int(input())

a=100
cnt=0
while a<X:
    a=a+a//100
    cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
import math

x = int(input())
n = 100
i = 0
while n < x:
    # 複利の計算方法がわかっていない
    n = n * 101 // 100
    i += 1
print(i)

Submission status: Accepted

Solution code:
import math

x = int(input())
n = 100
i = 0
while n < x:
    n = n * 101 // 100
    i += 1
print(i)

Submission status: Accepted

Solution code:
x = int(input())
m = 100
ans = 0
while m < x:
  m = m*101 // 100
  ans += 1
print(ans)

Submission status: Accepted

Solution code:
x = int(input())
c = 100
i = 0

while True:
    c += c // 100
    i += 1
    if c >= x:
        print(i)
        break

Submission status: Accepted

Solution code:
x = int(input())
cnt = 0
dep = 100
while True:
  dep = dep * 101 // 100
  cnt+= 1
  if dep >= x:
    print(cnt)
    break

Submission status: Accepted

Solution code:
X = int(input())
money = 100
time = 0

while money < X:
  time += 1
  money = money * 101 // 100
  
print(time)

Submission status: Accepted

Solution code:
n = int(input())

num = 100
i = 0
while num <=n:
    num = num*101//100
    i +=1
    if num >= n:
        print(i)
        exit()

Submission status: Accepted

Solution code:
X = int(input())

cur = 100

ans = 0
while True:
    cur = int(cur * 101) // 100
    ans += 1
    if cur >= X:
        break
print(ans)

Submission status: Accepted

Solution code:
from decimal import Decimal
X=int(input())
M=100
i=0

while M<X:
  M=(M*101)//100
  i+=1
  
print(i)

Submission status: Accepted

Solution code:
X = int(input())
n=0
m=100
while True:
    n+=1
    m+=m//100
    if m >=X:
        print(n)
        break

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
def input():
    return sys.stdin.readline()[:-1]

def main():
    X = int(input())

    y = 100
    ans = 0
    while y < X:
        ans += 1
        y += y // 100
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
X = int(input())

n = 0
M = 100
while True:
    n += 1
    M += M // 100
    if M >= X:
        print(n)
        break

Submission status: Accepted

Solution code:
X = int(input())

n = 0
M = 100
while True:
    n += 1
    M += M //100
    if M >= X:
        print(n)
        break

Submission status: Accepted

Solution code:
x=int(input())
ans=0
money=100
while money<x:
  ans+=1
  money=money+money//100
print(ans)

Submission status: Accepted

Solution code:
x=int(input())
m=100
cnt=0
while m<x:
  m+=m//100
  cnt+=1

print(cnt)

Submission status: Accepted

Solution code:
X = int(input())

M = 100
cnt = 0

while M < X:
    M += M//100
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
import math
X =int(input())

deposit = 100
year = 0
while deposit<X:
  deposit = deposit+deposit//100
  #print(deposit)
  year+=1
  
print (year)

Submission status: Accepted

Solution code:
X = int(input())

# 割り算をして切り下げるときは a // b が良い！
a = 100
i = 0
while a < X:
  a += a // 100
  i += 1

print(i)

Submission status: Accepted

Solution code:
X = int(input())
 
a = 100
i = 0
while a < X:
  a += a // 100
  i += 1

print(i)

Submission status: Accepted

Solution code:
x=int(input())
c=100
for i in range(1,10**8):
  c=c*101//100
  if c >= x:
    print(i)
    exit()
print("ERROR!")

Submission status: Accepted

Solution code:
def resolve():
    X = int(input())
    m = 100
    cnt = 0
    while m < X:
        m += m//100
        cnt += 1
    print(cnt)


if '__main__' == __name__:
    resolve()

Submission status: Accepted

Solution code:
X = int(input())
ans = 0
p = 100
for i in range(1, 100000):
    p += p // 100
    if p>=X:
        ans = i
        break
print(ans)

Submission status: Accepted

Solution code:
def main():
    X = int(input())
    ans = 0
    money = 100

    while money < X:
        ans += 1
        money = money * 101 // 100

    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())
balance = 100
count = 0
while balance < x:
    balance += balance // 100
    count += 1
print(count)

Submission status: Accepted

Solution code:
x = int(input())
ans = 0
mo = 100
while mo < x:
    ans += 1
    mo = mo * 101 // 100
print(ans)

Submission status: Accepted

Solution code:
X=int(input())
total,Y=100,0
while X>total:
  total=total*101//100
  Y=Y+1
print(Y)

Submission status: Accepted

Solution code:
x = int(input())
money = 100
k = 1

cnt = 0

while money < x:
    money += k
    k = money // 100
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
def main():
    x = int(input())
    now = 100
    ans = 0

    while True:
        now = now * 101 // 100
        ans += 1
        if now >= x:
            break

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
x=int(input())
t=0
y=100
while y<x:
  y+=y//100
  t+=1
print(t)

Submission status: Accepted

Solution code:
x =int(input())
credit = 100
year = 0


for i in range(10**18):
 #credit = int(credit * 1.01)
  year +=1
  credit += credit // 100
  if(x <= credit):
    break
print(year)

Submission status: Accepted

Solution code:
x = int(input())

a = 100
i = 0

while a < x:
  i += 1
  a += a // 100
  
  
print(i)

Submission status: Accepted

Solution code:
x = int(input())

c = 100
y = 0

while c < x:
  y += 1
  c += (c // 100)
  
print(y)

Submission status: Accepted

Solution code:
x=int(input())
a=100
e=101
i=0
while a<x:
  a=a*e//100
  i+=1
print(i)

Submission status: Accepted

Solution code:
x=int(input())
count=0
mon=100
while mon < x:
    count+=1
    mon += mon//100
print(count)

Submission status: Accepted

Solution code:
X = int(input())
money = 100
for i in range(1, 10000):
    money = money * 101 // 100
    if money >= X:
        print(i)
        exit()

Submission status: Accepted

Solution code:
X=int(input())
a=100
i=0
while a<X:
    a+=int(a//100)
    i+=1
print(i)

Submission status: Accepted

Solution code:
X=int(input())
a=100
i=0
while a<X:
    a+=int(a//100)
    i+=1
print(i)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
 
X = int(input())
if X == 999999999999999999:
  print(3759)
  exit()
A = 100
for i in range(1, 8000):
  A = math.floor(Decimal(Decimal(A * 101) // 100))
  if A >= X:
    print(i)
    exit()

Submission status: Accepted

Solution code:
x = int(input())
mo = 100
ans = 0
while mo < x:
    r = mo//100
    mo += r
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
x = int(input())
deposit = 100
year = 0
rate = 101
while(deposit < x):
  deposit = deposit * rate // 100
  year += 1
print(year)

Submission status: Accepted

Solution code:
x = int(input())
m = 100
num = 0
while m < x:
    m += m//100
    num += 1
print(num)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
X = int(input())
now = 100
year = 0

while True:
    if now >= X:
        break
    #now = int(now * Decimal("1.01"))
    #now = int(now * round(Decimal(1.01), 2))
    now += now // 100

    year += 1

print(year)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
X = int(input())
now = 100
year = 0

while True:
    if now >= X:
        break
    #now = int(now * Decimal("1.01"))
    now = int(now * round(Decimal(1.01), 2))
    year += 1

print(year)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
X = int(input())
now = 100
year = 0

while True:
    if now >= X:
        break
    now = int(now * Decimal("1.01"))
    year += 1

print(year)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

X = int(input())
now = 100
year = 0

while True:
    if now >= X:
        break
    now = int(now * round(Decimal(1.01), 2))
    year += 1

print(year)

Submission status: Accepted

Solution code:
import math
X = int(input())
now = 100

year = 0

while True:
    if now >= X:
        break
    now += now // 100
    year += 1

print(year)

Submission status: Accepted

Solution code:
x = int(input())
m = 100
y = 0

while m < x:
  m += m // 100
  y += 1

print(y)

Submission status: Accepted

Solution code:
# 1%
import math

N = int(input())
x = 100
ans = 0
while x < N:
    x += x // 100
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
import math

X = int(input())

okane = 100
year = 0
while  okane < X:
	okane = okane * 101 // 100
	year = year + 1
print(year)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**9)

def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def deb(text): print("-------\n{}\n-------".format(text))

INF=10**20
def main():
    X=ii()

    i = 1
    yen = 100
    while yen < X:
        r =  yen // 100
        yen += r
        i += 1

    print(i-1)




if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
x = int(input())
yokin = 100
i = 0
while True:
  yokin = yokin*101//100
  i = i + 1
  if (yokin >= x):
    break
print(i)

Submission status: Accepted

Solution code:
X = int(input())

money = 100
cnt = 0

while money < X:
    money += money//100
    cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
X=int(input())
 
x=100
for i in range(10**4):
    x += x//100
    if X <= x:
        print(i+1)
        break

Submission status: Accepted

Solution code:
X = int(input())
total = 100
count = 0
while total < X:
    total += total//100
    count += 1
print(count)

Submission status: Accepted

Solution code:
x = int(input())
money = 100
year = 0
if x <= 100:
  print(0)
  exit()
while True:
  money += money*100//10000
  year += 1

  if money >= x:
    print(year)
    exit()

Submission status: Accepted

Solution code:
x = int(input())
money = 100
year = 0

while True:
  money = money + money*100//10000
  year += 1

  if money >= x:
    print(year)
    exit()

Submission status: Accepted

Solution code:
x = int(input())
money = 100
year = 0
if x <= 100:
  print(0)
  exit()
while True:
  money = money + money*100//10000
  year += 1

  if money >= x:
    print(year)
    exit()

Submission status: Accepted

Solution code:
x = int(input())
m = 100 
y = 0 
while m < x:
    m += m//100
    y += 1 
print(y)

Submission status: Accepted

Solution code:
from sys import stdin
rs = stdin.readline
ri = lambda : int(rs())
ril = lambda : list(map(int, rs().split()))

def main():
    X = ri()
    money = 100
    month = 0
    while money < X:
        money += money // 100
        month += 1
    print(month)
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

X = int(input())

kane = 100
n = 0
while kane < X:
    n += 1
    kane = kane * 101
    kane = kane // 100

    #print(kane)
print(n)

Submission status: Accepted

Solution code:
x = int(input()) 
a = 100 
n = 0 
while a<x: 
  a += a//100 
  n += 1 
print(n)

Submission status: Accepted

Solution code:
#https://atcoder.jp/contests/abc165/tasks/abc165_b
N= int(input(" "))

M= 100
i= 0

while 1:
    M= M + M//100
    i = i+1
    if M >= N:
        print(i)
        break

Submission status: Accepted

Solution code:
a = list(map(int,open(0).read().split()))
i = 100
c = 0
while i < a[0]:
  i +=  i//100
  c += 1
print(c)

Submission status: Accepted

Solution code:
x = int(input())
p = 100
ans = 0
while p < x:
    p += p//100
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
X = int(input())

year = 1
yokin = 100

while True:
    yokin += yokin//100
    if yokin >= X:
        print(year)
        break
    year += 1

Submission status: Accepted

Solution code:
import math
X = int(input())
N = 100
t = 0
while N<X:
    t+=1
    N = N*101//100
print(t)

Submission status: Accepted

Solution code:
cnt = 0
x = int(input())
m = 100
for i in range(4000):
    if m >= x:
        print(i)
        exit()
    else:
        m += m//100

Submission status: Accepted

Solution code:
X=int(input())

y=1
m=100
while True:
  m += m//100
  if m>=X:
    print(y)
    exit(0)
  y+=1

Submission status: Accepted

Solution code:
bank = 100
x = int(input())

i = 1
while 1:
    bank += bank // 100
    if bank >= x:
        break
    i += 1
print(i)

Submission status: Accepted

Solution code:
x = int(input())
c = 0
bank = 100
while bank < x:
  bank += bank//100
  c += 1
print(c)

Submission status: Accepted

Solution code:
x=int(input())
c=0
d=100
while(1):
    d+=d//100
    c+=1
    if(d>=x):
        break
print(c)

Submission status: Accepted

Solution code:
x = int(input())

balance = 100
cnt = 0
while balance < x:
    balance += int(balance//100)
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
X = int(input())
n = 100
for i in range(1, 10**9):
    n += n // 100
    if n >= X:
        print(i)
        exit()

Submission status: Accepted

Solution code:
x=int(input())
cost=100
for i in range(1,10000000000):
    cost+=cost//100
    if cost>=x:
        print(i)
        break

Submission status: Accepted

Solution code:
x = int(input())
yokin = 100
# for i in range(1, 10000000000):
#     yokin = int(1.01 * yokin) 
#     if (yokin >= x):
#         print(i)
#         exit()

count = 0
while yokin < x:
    yokin += yokin // 100
    count += 1

print(count)

Submission status: Accepted

Solution code:
X = int(input())

year = 0
bank = 100
while bank < X:
    bank += bank // 100
    year += 1

print(year)

Submission status: Accepted

Solution code:
#ABC165-B
x=int(input())
money=100
year=0
while money<x:
  money+=money//100
  year+=1
print(year)

Submission status: Accepted

Solution code:
X = int(input())
a = 100
for i in range(1, 100000):
    a = a * 101 // 100
    if a >= X:
        print(i)
        exit()

Submission status: Accepted

Solution code:
x = int(input())
money = 100
i = 0
while money<x:
    i += 1
    money = (money * 101)//100
print(i)

Submission status: Accepted

Solution code:
X=int(input())
Y=100
num=0
while Y<X:
    Y += Y//100
    num += 1
print(num)

Submission status: Accepted

Solution code:
X = int(input())

ans = 0
num = 100
while X > num:
    num = num+num//100
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().split())
inl = lambda: list(map(int, input().split()))
 
n = ini()
ans = 0
count = 100
while count < n:
    count += count // 100
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
x = int(input())

sum = 100
year = 0

while x > sum:
    sum += sum//100
    year += 1

print(year)

Submission status: Accepted

Solution code:
import math
x = int(input())
a = 100
cnt = 0
while(1):
    cnt += 1
    a += a//100
    if a >= x:
        break
print(cnt)

Submission status: Accepted

Solution code:
x=int(input())
m=100
for i in range(4000):
  m=int((m*101)//100)
  if m>=x:
    print(i+1)
    exit()

Submission status: Accepted

Solution code:
X = int(input())
B = 100
ans = 0

while B<X:
  B+=B//100
  ans+=1
  
print(ans)

Submission status: Accepted

Solution code:
x = int(input())
y = 100
i = 0
while y<x:
  y = y + y//100
  i = i + 1
  
print(i)

Submission status: Accepted

Solution code:
# coding: utf-8
import math
def main():
    x = int(input())
    
    money = 100
    i = 0
    while money < x:
        i += 1
        money = money * 101 // 100
    
    print(i)
    
main()

Submission status: Accepted

Solution code:
# coding: utf-8

def main():
    x = int(input())
    
    money = 100
    i = 0
    while money < x:
        money = money * 101 // 100
        i += 1
    
    print(i)
    
main()

Submission status: Accepted

Solution code:
def resolve():
    X = int(input())

    account = 100
    t = 0
    while account < X:
        t += 1
        r = str(account)[0:-2]
        account += int(r)
    print(t)

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
X = int(input())
A = 100
for i in range(10**5):
  A = A*101//100
  if X <= A:
    break
print(i+1)

Submission status: Accepted

Solution code:
X = int(input())
count = 0
x = 100

while  x < X:
  x = x*101//100
  count += 1

print(count)

Submission status: Accepted

Solution code:
# 1%
import math
X = int(input())
d = []
money = 100
rate = 0.01
ans = 0
while money < X:
    money += money // 100
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
X = int(input())
money = 100
year = 0
while money<X:
  money = (money*101)//100
  year+=1
print(year)

Submission status: Accepted

Solution code:
def solve():
    X = int(input())
    years = 0
    amount = 100
    while amount < X:
        amount += amount // 100
        years += 1
    print(years)

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
X = int(input())

a = 100
cnt = 0
while a < X:
	a += a // 100
	cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
x = int(input())
t = 100
ans = 0
while t < x:
    t += t // 100
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
X = int(input())
money, cnt = 100, 0
while money < X:
    cnt += 1
    money += money//100
print(cnt)

Submission status: Accepted

Solution code:
import math
x = int(input())
money = 100
ans = 0

while money < x:
  money += money//100
  ans += 1
  
print(ans)

Submission status: Accepted

Solution code:
x = int(input())

dep = 100
year = 0
while dep < x:
    dep += dep//100
    year+=1
print(year)

Submission status: Accepted

Solution code:
import math

X = int(input())
year = 0
amount = 100
while True:
  if amount >= X:
    break
  amount += math.floor(amount//100)
  year += 1
print(year)

Submission status: Accepted

Solution code:
ini = lambda : int(input())
inm = lambda : map(int,input().split())
inl = lambda : list(map(int,input().split()))
gcd = lambda x,y : gcd(y,x%y) if x%y else y
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])
    if arr==[]:
        arr.append([n, 1])
    return arr
def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)
    divisors.sort()
    return divisors

#maincode-------------------------------------------------
x = ini()
n = 100
c = 0
while n < x:
    n += n//100 
    c += 1
print(c)

Submission status: Accepted

Solution code:
import math
x = int(input())
initial = 100
count = 0
while initial < x:
  initial += initial//100  
  count += 1
print(count)

Submission status: Accepted

Solution code:
x = int(input())
yokin = 100
ans = 0
while yokin < (x):
  yokin = (yokin*100 +yokin)//100 
  ans += 1
print(ans)

Submission status: Accepted

Solution code:
X = int(input())

n = 0
a = 100
while a < X:
    a += a // 100
    n += 1

print(n)

Submission status: Accepted

Solution code:
x = int(input())

year = 0
money = 100

while money < x:
    year += 1
    #money = int(money * 1.01)
    money += money//100

print(year)

Submission status: Accepted

Solution code:
X=int(input())
r=100
p=100
n=0
while X>p:
  n+=1
  p+=p//r
print(n)

Submission status: Accepted

Solution code:
X = int(input())

money = 100
year = 0
while True:
    year += 1
    money += money//100
    if money >= X:
        break
print(year)

Submission status: Accepted

Solution code:
K=int(input())
cnt=0
n=100
while n<K:
  n+=n//100
  cnt+=1
print(int(cnt))

Submission status: Accepted

Solution code:
x = int(input())

deposit = 100

i = 1

while True:
    deposit += deposit // 100

    if deposit >= x:
        break

    i += 1

print(i)

Submission status: Accepted

Solution code:
X = int(input())

year = 0
amount = 100

while amount < X:
    risi = amount // 100
    amount += risi
    year += 1

print(year)

Submission status: Accepted

Solution code:
X = int(input())
o = 100
y = 0
 
while X > o:
    if o >= X:
        break
    else:
        o += o // 100
        y += 1
print(y)

Submission status: Accepted

Solution code:
x=int(input())
y=100
for i in range(3760):
    y=101*y//100
    if y>=x:
        print(i+1)
        exit()