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:
x = int(input())
now = 100
risi = 0
for i in range(1,100001):
  risi = now//100
  now += risi
  if now >= x:
    print(i)
    exit()

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())
M = 100
y = 0
while X > M:
  M += M//100
  y += 1
print(y)

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())
k=100
i=0
while k<x:
    k += k//100
    i +=1
print(i)

Submission status: Accepted

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

ans = 0
while True:
    ans += 1
    n += n // 100
    if n >= x:
        print(ans)
        exit()

Submission status: Accepted

Solution code:
import sys
from math import sqrt, gcd, ceil, log
from bisect import bisect
from collections import defaultdict, Counter
inp = sys.stdin.readline
read = lambda: list(map(int, inp().strip().split()))



def solve():
	n = int(input()); x = 100
	y = 0
	while x < n:
		x += (x)//100
		y += 1
	print(y)


	





		

if __name__ == "__main__":
	solve()

Submission status: Accepted

Solution code:
import math

X = int(input())

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

print(year)

Submission status: Accepted

Solution code:
from sys import exit
X = int(input())
x = 100
i = 0
while True:
    i += 1
    x *= 101
    x = x // 100

    if X <= x:
        print(i)
        exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from decimal import Decimal
X = int(input())
cnt = 0
yokin = Decimal(100)
while X>yokin:
    yokin += (yokin/100).to_integral(rounding='ROUND_FLOOR')
    cnt += 1
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
c = 100
ret = 0
while c < X:
  ret += 1
  c = c * 101 // 100

print(ret)

Submission status: Accepted

Solution code:
from collections import defaultdict as dd
from collections import deque
import bisect
import heapq

def ri():
    return int(input())

def rl():
    return list(map(int, input().split()))


def solve():
    x = ri()
    steps = 0
    bal = 100
    while bal < x:
        steps += 1
        bal += bal // 100
    print (steps)






mode = 's'

if mode == 'T':
    t = ri()
    for i in range(t):
        solve()
else:
    solve()

Submission status: Accepted

Solution code:
X = int(input())
money = 100
count = 0
while True:
    money = (money * 101) // 100
    count += 1
    if money >= X:
        break
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())
def f(n):
  a=100
  for i in range(0,n):
    a+=a//100
  return(a)

for i in range(10**18):
  if f(i)>=x:
    print(i)
    break

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 9)
# input = sys.stdin.readline    ####
def int1(x): return int(x) - 1
def II(): return int(input())
def MI(): return map(int, input().split())
def MI1(): return map(int1, input().split())
def LI(): return list(map(int, input().split()))
def LI1(): return list(map(int1, input().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def MS(): return input().split()
def LS(): return list(input())
def LLS(rows_number): return [LS() for _ in range(rows_number)]
def printlist(lst, k=' '): print(k.join(list(map(str, lst))))
INF = float('inf')
# from math import ceil, floor, log2
# from collections import deque
# from itertools import combinations as comb, combinations_with_replacement as comb_w, accumulate, product, permutations
# from heapq import heapify, heappop, heappush
# import numpy as np    # cumsum
# from bisect import bisect_left, bisect_right

def solve():
    X = II()

    mon = 100
    for i in range(1, 4000):
        mon = mon * 101 // 100
        if mon >= X:
            print(i)
            return

if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
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())
p = 100
t , si= 0, 0
while(p < x):
    si = p//100
    p += si
    t += 1
print(t)

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:
#165B
#1%

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

Submission status: Accepted

Solution code:
X = int(input())

K = 100
i = 1
while 1:
    K *= 101
    K //= 100
    if K >= X:
        break
    i += 1
print(i)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
x = int(input())
c = 0
t = 100
while x > t:
    t = 101 * t // 100
    c += 1
print(c)

Submission status: Accepted

Solution code:
X = int(input())

yen = 100
ret = 0
while yen<X:
  yen = 101*yen//100
  ret += 1
print(ret)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
X = int(input())
Y = 100
count = 0
while Y < X:
    Y = Y + Y // 100
    count += 1

print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(year)

Submission status: Accepted

Solution code:
X = int(input())
money = 100
count = 0
while True:
    count += 1
    money = (money * 100 * 101) // 10000
    if money >= X:
        print(count)
        break

Submission status: Accepted

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

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())
t=100
cnt=0
while t<x:
  t=t+t//100
  cnt+=1
print(cnt)

Submission status: Accepted

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

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:
import math
X = int(input())

count = 0
s = 100
while s < X:
    #s = math.floor(s*1.01)
    s += s//100
    count += 1
print(count)

Submission status: Accepted

Solution code:
def main():
    x = int(input())
    m = 100
    for i in range(10**5):
        if m >= x:
            print(i)
            return
        m += m//100

if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
n=int(input())
c=100
for i in range(4000):
  c=(c*101)//100
  if c>=n:
    print(i+1)
    break

Submission status: Accepted

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

Submission status: Accepted

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

while True:
  money = money + money//100
  year += 1
  if money >= x:
    print(year)
    exit()

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())
ppap = 0
# for i in range(100 , L):
a = 100
while a < X:
  a += a//100
  ppap += 1
print(ppap)

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()

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

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

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

print(x)

Submission status: Accepted

Solution code:
maxt = int(input())
t,nen = 100,0
while t<maxt:
    t += t//100
    nen += 1
print(nen)

Submission status: Accepted

Solution code:
import math
X = int(input())
a = 100
for i in range(1,200000):
  a += a//100
  if a >= X:
    break
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
i = 100
cnt = 0
while True:
    i += i // 100
    cnt += 1
    if i >= N:
        print(cnt)
        exit()

Submission status: Accepted

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

Submission status: Accepted

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

    sum = 100
    count = 0
    while sum < X:
        sum = sum + sum  // 100
        count = count + 1
    print(count)
main()

Submission status: Accepted

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

sum = int(100)
cnt = 0
while sum < X:
    sum = sum + sum//100
    cnt += 1

print(cnt)

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
X=int(input())

R=100
Y=0
while R<X:
    Y+=1
    R+=(R//100)

print(Y)

Submission status: Accepted

Solution code:
from decimal import *
from math import floor
X = int(input())

year = 0
yen = Decimal(100)
while not (yen >= X):
    #print(X)
    yen += floor(yen*Decimal("0.01"))
    year += 1

print(year)

Submission status: Accepted

Solution code:
X=int(input())
mlist=[100]
while mlist[-1]<X:
    m_n=mlist[-1]+mlist[-1]//100
    mlist.append(m_n)
print(len(mlist)-1)

Submission status: Accepted

Solution code:
X=int(input())
n=100
for i in range(5000):
  if n>=X:print(i);break
  n=n*101//100

Submission status: Accepted

Solution code:
x = int(input())

count = 0
account = 100
while(True):
  if (account >= x):
    break
    
  account = account* 101 // 100
  count += 1

print(count)

Submission status: Accepted

Solution code:
X = int(input())
def bank(x):
  k = 100
  m = 0
  while x > k:
    k = k*101 // 100
    m += 1
  return m
print(bank(X))

Submission status: Accepted

Solution code:
from decimal import *

x = Decimal(input())
ans = 100
cnt = 0
while x > ans:
  ans = int(Decimal("1.01") * Decimal(str(ans)))
  cnt += 1

print(cnt)

Submission status: Accepted

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


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

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:
import sys
import itertools

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

X = int(read())

x = 100
for year in itertools.count():
    if x >= X:
        break
    x = x * 101 // 100
print(year)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

print(cnt)

Submission status: Accepted

Solution code:
# 165 B

x = int(input())
d= 100
yr = 0

while d < x:
    d += (d // 100)
    yr += 1

print(yr)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
t = 100

for i in range(10000):
    t += t//100
    if X<=t:
        print(i+1)
        break

Submission status: Accepted

Solution code:
req = int(input())
count = 0
p = 100
while p < req:
  p = p * 101//100
  p = int(p)
  count +=1
  
print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    import sys
    read = sys.stdin.buffer.read
    readline = sys.stdin.buffer.readline
    readlines = sys.stdin.buffer.readlines
    sys.setrecursionlimit(10 ** 7)

    x = int(readline())
    v = 100
    for i in range(10 ** 6):
        if v >= x:
            print(i)
            break
        v += v // 100


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

while x > total:
  year += 1
  total += total//100
print(year)

Submission status: Accepted

Solution code:
import math

x = int(input())
num = 100

for i in range(10000):
  num += num//100
  if num >= x:
    print(i+1)
    exit(0)

Submission status: Accepted

Solution code:
def main():
  x = int(input())
  
  total = 100
  year = 0
  
  while total < x:
    #total = math.floor(total * 1.01)
    total += total // 100
    year += 1
  
  print(year)
  
  
  
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

cnt = 0
money = 100

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve(x):
  money = 100
  year = 0
  while money < x:
    money = money * 101 // 100
    year += 1
  return year
  
x = int(input())
ans = solve(x)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
def cumsum(x):
    return list(np.cumsum(x))

def cumsum_number(N,K,x):
    ans=[0]*(N-K+1)
    number_cumsum = cumsum(x)
    number_cumsum.insert(0,0)
    for i in range(N-K+1):
        ans[i]=number_cumsum[i+K]-number_cumsum[i]
    return ans
"""
int #整数
float #小数

#for
for name in fruits: #fruitの頭から操作
    print(name)

#リスト
list0 = [] #リスト生成
list0 = [1,2,3,4] #初期化
list0 = [0]*10 #[0,0,0,0,0,0,0,0,0,0]
list1= [i for i in range(10)] #>>> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
list1 = list(map(int, input().split()))　# 複数の入力をリストに入れる
number=[int(input()) for i in range(int(input()))] #複数行の入力をリストに
list1 = list1 + [6, 7, 8] #リストの追加
list2.append(34) #リストの追加　最後に（）内が足される
list.insert(3,10) #リストの追加　任意の位置（追加したい位置,追加したい値）
len(list4) #リストの要素数
max(sa) #list saの最小値
list5.count(2) #リスト(文字列も可）内の2の数
list1.sort() #並び替え小さい順
list1.sort(reverse=True)  #並び替え大きい順
set(list1) #list1内の重複している要素を削除し、小さい順に並べる
sum([2,3,   ,3]) #リストの合計

abs(a) #aの絶対値
max(a,b) min(a,b) #最大値　最小値
text1 = text1.replace("34","test") #text1内の"34"を"test"に書き換える(文字列内の文字を入れ替える)

exit(0) #強制終了

cumsum(リスト) #累積和をリストで返す
cumsum_number(N,K,x) #N個の数が含まれるリストx内のK個からなる部分和をリストで返す
"""
X=int(input())
Y=100
ans=0
while Y<X:
    Y=Y+Y//100
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    n = int(input())
    value = 100
    years = 0
    while value < n:
        value += (value//100)
        years += 1
    print(years)

Submission status: Accepted

Solution code:
import sys
import itertools
# import numpy as np
import time
import math
 
sys.setrecursionlimit(10 ** 7)
 
from collections import defaultdict
 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
X = int(input())
money = 100
rishi = 0
year = 0

while X > money:
    year = year+1
    rishi = money//100
    money = money+rishi

print(year)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

while True:
    coin = coin + math.floor(coin*Decimal('0.01'))
    count += 1
    if coin >= X:
        break
print(count)

Submission status: Accepted

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

while money < x:
    year += 1
    interset = str(money)
    money += int(interset[:-2])

print(year)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
x=int(input())
money=100
count=0
while money < x:
  money += math.floor(money*Decimal('0.01'))
  count += 1
print(count)

Submission status: Accepted

Solution code:
import math
X=int(input())
tmp=100
t=1
while tmp<X:
  tmp=math.floor(tmp*1.01)
  t+=1
print(t-1)

Submission status: Accepted

Solution code:
import math

X = int(input())
i = 0
P = 100

while True:
    if P >= X:
        break
    P += P*0.01
    P = math.floor(P)
    i += 1
    
print(i)

Submission status: Accepted

Solution code:
X = int(input())
money = 100
i = 1
while 1:
    money = money*1.01//1
    if money >= X:
        print(i)
        break
    i += 1

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
X = int(input())
money = 100
count = 0
while money < X:
    money = money * 1.01
    count += 1
    money = int(money)
print(count)

Submission status: Accepted

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

while money < X:
  money = int(money * 1.01)
  year += 1
  
print(year)

Submission status: Accepted

Solution code:
import math
x=int(input())
a=100
b=0

while a<x:
    a += math.floor(a*0.01)
    b += 1
print(b)

Submission status: Accepted

Solution code:
x=int(input())
a=100
ans=0
while a<x:
  a=int(a*1.01)
  ans+=1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

while x > balance:
    balance = int(balance*1.01)
    count += 1

print(count)

Submission status: Accepted

Solution code:
def one_percent():
    X = int(input())
    needed_year_is = 0
    your_deposit = 100
    
    flag = True
    while flag:
        if your_deposit >= X:
            print(needed_year_is)
            return
        
        needed_year_is += 1
        your_deposit = int(your_deposit * 1.01)

one_percent()

Submission status: Accepted

Solution code:
x = int(input())
y = 0
bank = 100
while True:
    y += 1
    interest = int(bank*0.01)
    bank += interest
    if bank >= x:
        print(y)
        exit()

Submission status: Accepted

Solution code:
import sys
from collections import deque
from math import floor
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

def Main():
    x = I()
    m = 100
    year = 0
    while m<x:
        m = floor(m*1.01)
        year += 1
    print(year)
    return

if __name__=='__main__':
    Main()

Submission status: Accepted

Solution code:
import math
a = int(input())
tm = 100
year = 0
while a > tm:
  tm += math.floor(tm *0.01)
  year += 1
print(year)

Submission status: Accepted

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

while money < X:
    money = int(money*1.01)
    count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

c = 100
y = 0
while(c < X):
    c += int(c//100)
    y += 1

print(y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
depo = 100
rate = 0.01
count = 0

while depo < x:
    depo += (depo * rate)
    depo = int(depo)
    count += 1

print(count)

Submission status: Accepted

Solution code:
import math
def main():
  x=int(input())
  y=100
  t=0
  while(True):
    y=math.floor(y*1.01)
    t+=1
    if(x<=y):
      print(t)
      return 0

main()

Submission status: Accepted

Solution code:
import math
x = int(input())
money = 100
ans = 0
while True:
  if money >= x:
    print(ans)
    exit()
  else:
    money = int(math.floor(money * 1.01))
    ans += 1

Submission status: Accepted

Solution code:
from math import floor
x = int(input())
money = 100
count = 0
while money < x:
    money *= 1.01
    money = floor(money)
    count += 1
print(count)

Submission status: Accepted

Solution code:
x=int(input())
tmp=100
ans=0
while tmp<x:
    tmp=int(1.01*tmp)
    ans+=1
    if tmp>=x:
        print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
X = int(input())
count = 0
sum = 100
while X > sum:
  sum += (math.floor(sum) * 0.01)
  sum = math.floor(sum)
  count += 1
print(count)

Submission status: Accepted

Solution code:
import math
x = int(input())
diff = x - 100
balance = 100  # 預金額
for i in range(diff):
  interest = int(balance * 0.01)  # 利子
  balance += interest
  if balance >= x:
    print(i+1)
    break

Submission status: Accepted

Solution code:

import glob
import numpy as np

# 問題ごとのディレクトリのトップからの相対パス
REL_PATH = 'ABC\\165\\B'

# テスト用ファイル置き場のトップ
TOP_PATH = 'C:\\AtCoder'

class Common:

    problem = []
    index = 0

    def __init__(self, rel_path):
        self.rel_path = rel_path

    def initialize(self, path):
        file = open(path)
        self.problem = file.readlines()
        self.index = 0
        return

    def input_data(self):
        try:
            IS_TEST
            self.index += 1
            return self.problem[self.index-1]
        except NameError:
            return input()

    def resolve(self):
        pass

    def exec_resolve(self):
        try:
            IS_TEST
            for path in glob.glob(TOP_PATH + '\\' + self.rel_path + '/*.txt'):
                print("Test: " + path)
                self.initialize(path)
                self.resolve()
                print("\n\n")
        except NameError:
            self.resolve()


class B(Common):

    def resolve(self):

        X = int(self.input_data())

        count = 0

        money = 100

        while True:
            kinri = int(money * 0.01)
            money += kinri
            count += 1
            if money >= X:
                print(str(count))
                break


solver = B(REL_PATH)
solver.exec_resolve()

Submission status: Accepted

Solution code:
x = int(input())

i = 100
year = 0

while i < x:
    year += 1
    i += int(i * 0.01)
        
print(year)

Submission status: Accepted

Solution code:
import math

x=int(input())

money=100
years=0

while money<x:
    money=math.floor(money*1.01)
    years+=1

print(years)

Submission status: Accepted

Solution code:
x = int(input())

a = 100
b = 0

while a < x:
    b += 1
    a += int(a * 0.01)
    
print(b)

Submission status: Accepted

Solution code:

x = int(input())
depo = 100
count = 0

while depo < x:
    depo += int(depo*0.01)
    count += 1
print(count)

Submission status: Accepted

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

    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
X = int(input())
dep = 100
count = 0
while True:
    if dep >= X:
        print(count)
        break
    dep = int(dep * 1.01)
    count += 1

Submission status: Accepted

Solution code:
X = int(input())
 
now = 100
cnt = 0
while now < X:
  cnt += 1
  now += int(now*0.01)
print(cnt)

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())
money = 100
year = 0

while money < X:
  year += 1
  money = int(money * 1.01)

print(year)

Submission status: Accepted

Solution code:
import math
def main():
    deposit = 100
    X = int(input())
    year = 0
    
    while X > deposit:
        deposit = int(deposit * 1.01)
        year +=1

    print(year)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
x = int(input())
y = 100
count = 0
while (True):
  if y < x:
    y *= 1.01
    y = int(y)
    count += 1
  else:
    break
print(count)

Submission status: Accepted

Solution code:
x=int(input())
ans=0
coin=100

while coin < x:
  coin = int(coin*1.01)
  ans += 1
print(ans)

Submission status: Accepted

Solution code:
x = int(input())

n = 0
v = 100
while v < x:
  v = int(v * 1.01)
  n += 1
print(n)

Submission status: Accepted

Solution code:
import math
X=int(input())
R=100
ans=0
while R<X:
    R=math.floor(R*1.01)
    ans+=1
print(ans)

Submission status: Accepted

Solution code:
import math
X = int(input())
c = 0
R = 100
while R < X:
  R = math.floor(R*1.01)
  c += 1
print(c)

Submission status: Accepted

Solution code:
money = 100
goal = int(input())

for i in range(1, 10**18):
  money = int(1.01* money)
  if money >= goal:
    print(i)
    break

Submission status: Accepted

Solution code:
x = int(input())
mny = 100
yr = 0
while mny < x:
    mny = int(mny * 1.01)
    yr += 1
print(yr)

Submission status: Accepted

Solution code:
x = int(input())

money, year = 100, 0
while money < x:
  money += int(money * 0.01)
  year += 1
print(year)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
x=int(input())
times=0
money=100
while money<x:
  money=math.floor(money*1.01)
  times+=1
  
print(times)

Submission status: Accepted

Solution code:
import collections
import sys
readline = sys.stdin.readline


def main():
    x = int(readline().rstrip())
    y = 100
    num = 0
    while 10 ** 18 >= y:
        y = int(y * 1.01)
        num += 1
        if x <= y:
            print(num)
            return


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())

y = 100
i = 0
while True:
    if y >= x:
        print(i)
        break
    y += int(y * 0.01)
    i += 1

Submission status: Accepted

Solution code:
# B - 1%
X = int(input())
x = 100
ans = 0
while x<X:
    x = int(x*1.01)
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
money = 100
c = 0

while money < N:
    money = money * 101 // 100
    c += 1

print(c)

Submission status: Accepted

Solution code:
import math
x = int(input())
bank = 100
y = 0
while x > bank:
  bank += math.floor(bank*0.01)
  y += 1

print(y)

Submission status: Accepted

Solution code:
X = int(input())
yen = 100
n = 0
while yen < X:
    n = n + 1
    yen = (yen*1.01)//1
    if X <= yen:
        print(n)

Submission status: Accepted

Solution code:
import math 
X = int(input())
yen = 100
n = 0
while yen < X:
    n = n + 1
    yen = math.floor(yen*1.01)
    if X <= yen:
        print(n)

Submission status: Accepted

Solution code:
x = int(input())
d, c = 100, 0
while d < x:
    d += int(d * 0.01)
    c += 1
print(c)

Submission status: Accepted

Solution code:
x = int(input())
d, c = 100, 0
while d < x:
    d += int(d * 0.01)
    c += 1
print(c)

Submission status: Accepted

Solution code:
X = int(input())
value = 100
year = 0
while value < X:
  value = int(value*1.01)
  year += 1
print(year)

Submission status: Accepted

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

now = 100
count = 0
while True:
    count += 1
    now = math.floor(now * 1.01)
    if now >= X:
        break

print(count)