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:
import sys
import math
from collections import defaultdict
from bisect import bisect_left, bisect_right

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]

mod = 10**9 + 7

def I(): return int(input())
def LI(): return list(map(int, input().split()))
def LIR(row,col):
    if row <= 0:
        return [[] for _ in range(col)]
    elif col == 1:
        return [I() for _ in range(row)]
    else:
        read_all = [LI() for _ in range(row)]
        return map(list, zip(*read_all))

#################

X = I()

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

Submission status: Accepted

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

Submission status: Accepted

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

while 101 <= X <= 10**18:
    depo = 100
    year = 1
    while True:
        depo += math.floor(depo * 0.01)
        if depo >= X:
            print(year)
            break
        year += 1
    break

Submission status: Accepted

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

i=100
count=0
while i<N:
  x=math.floor(i*1.01)
  i=x
  count+=1
  
print(count)

Submission status: Accepted

Solution code:
import math
import sys

targ=int(input())
first=100
rate=1.01
year=0
for i in range(100000):
  first*=rate
  first=first//1
  year+=1
  if first>=targ:
    print(year)
    sys.exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


############ ---- USER DEFINED INPUT FUNCTIONS ---- ############
def inp():
    return(int(input().rstrip()))
def inlt():
    return(list(map(int,input().rstrip().split())))
def insr():
    s = input().rstrip()
    return(s[:len(s) - 1])
def invr():
    return(map(int,input().rstrip().split()))
################################################################
k = 100
x = inp()
for i in range(5000):
    temp = k + k * 0.01
    k = int(temp)
    if k >= x:
        break

print(i + 1)

Submission status: Accepted

Solution code:
import math
X = int(input())
Amount = 100
for i in range(1, 10**18+1): 
    Amount += math.floor(Amount * 0.01)
    if Amount >= X:
        print(i)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input());
count = 0;
v = 100;
while(v < x):
    r = int(v * 0.01);
    v += r;
    count += 1;

print(count);

Submission status: Accepted

Solution code:
X = int(input())
n = 100
A = 100
i = 0

while n < X:
    n = A*1.01
    A = int(n)
    i += 1
    if A >= X:
        print(i)
        break

Submission status: Accepted

Solution code:
x = int(input(" "))
A = 100
n = 1
while (1):
    A = int(A*1.01)
    if (A >= x):
        print(n)
        break
    n += 1

Submission status: Accepted

Solution code:
try:
	x=int(input())
	o=100
	count=0
	while o<x:
		o=int(o+(o*(1/100)))
		count+=1
	print(count)
except:
	pass

Submission status: Accepted

Solution code:
from math import floor

X, val, a = eval(input()), 100, 1

while True :
    val += floor(val * 0.01)
    if val >= X:
        break
    a += 1
print(a)

Submission status: Accepted

Solution code:
import math
def resolve():
    x=int(input())
    n=100
    count=int(0)
    while n<x:
        n=n*1.01
        n=math.floor(n)
        count+=1
    print(count)

resolve()

Submission status: Accepted

Solution code:
import math
x=int(input())
a=100
for i in range(1,3761):
    a=int(1.01*a)
    if a>=x:
        print(i)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a=int(input())
pq=100
for i in range(4000):
    pq=pq*((1+.01*1))//1
    
    #print(pq)
    if (pq)>=a:
        print(i+1)
        break

Submission status: Accepted

Solution code:
X = int(input())
Amount = 100
Year = 0
while Amount < X:
    P = Amount * 0.01
    if P >= 1:
        Amount+= int(P)
        Year+=1
print(Year)

Submission status: Accepted

Solution code:
X = int(input())
r = 0.01
s = 100
i = 0
while s < X:
    s = int(s * (1 + r))
    i = i + 1
else:
    print(i)

Submission status: Accepted

Solution code:
x=int(raw_input())
amt=100
i=0
while True:
	amt=amt*1.01
	amt=amt//1
	i+=1
	if amt>=x:
		print(i)
		exit(0)

Submission status: Accepted

Solution code:
from math import floor

a = int(input())
n = 100
result = 0

while True:
    n = floor(n) * 1.01
    result += 1
    if n >= a:
        break

print(result)

Submission status: Accepted

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

res = 100
k = 0
while True:
  if res >= X:
    print(k)
    exit()
  else:
    k += 1
    res = floor(res * 1.01)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
X = int(input())
Answer = 0
S = 100
while True:
    S += (S//100)
    Answer += 1
    if X <= S:
        break
print(Answer)

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    X = int(input())
    year = 0
    money = 100
    while money < X:
        year += 1
        money = int(money*1.01)
    print(year)

Submission status: Accepted

Solution code:
target = int(input())
now = 100
count = 0

while True:
    if(now >= target):
        break
    count += 1
    now = int(now * 1.01)
    #print(f"{count}年目：{now}")

print(count)

Submission status: Accepted

Solution code:
x = int(input())
a = 100
count = 0
for i in range(10**18):
    a = int(a * 1.01)
    count = count + 1
    if int(a) >= x:
        d = count
        break
print(d)

Submission status: Accepted

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

# n =  math.log(X/100)/math.log(1.01)
total = 100
count = 1
while total < X:
    total = int(total*1.01)
    count+=1
print(count-1)

Submission status: Accepted

Solution code:
import math

X = int(input())
Takahashi_money =100
num = 0

while Takahashi_money < X:
    Takahashi_money = Takahashi_money * 1.01
    Takahashi_money = math.floor(Takahashi_money)
    num += 1

print(num)

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 165
# B - 1%

import math

x = int(input())

money = 100
year = 0
while money < x:
	money = math.floor(money * 1.01)
	year += 1
print(year)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X=int(input())
n=100
num=0

while n<X:
  n=n*1.01
  n=math.floor(n)
  num+=1
  
print(num)

Submission status: Accepted

Solution code:
X = int(input())

num = 100
i = 0
while True:
    if num >= X:
        break
    sun = num  // 100
    num += sun
    i += 1
print(i)

Submission status: Accepted

Solution code:
import math

x = int(input())

ans = 100
cnt = 0

while True:
    ans = math.floor(ans * 1.01)
    cnt += 1
    if ans >= x:
        break

print(cnt)

Submission status: Accepted

Solution code:
import math
x = int(input())
n = int((math.log10(x)-2)/math.log10(1.01))-1
total = 100
while total < x:
    n += 1
    total = 100
    for _ in range(n):
        total += int(total*0.01)
print(n)

Submission status: Accepted

Solution code:
import math

A = int(input())

n = 100
num = 0
while n < A:
  n = math.floor(n*1.01)
  num = num + 1
  
print(num)

Submission status: Accepted

Solution code:
import math
K = input()
K = float(K)
X = 100.0
i = 0
while K > X:
  X = X *1.01
  X = math.floor(X)
  i = i + 1

  
print(i)

Submission status: Accepted

Solution code:
X = int(input())
current1 = 100
year = 0
while current1 < X :
    fraction = current1*0.01
    if fraction >= 1 :
        current1 = current1 + int(fraction)
        year = year + 1
print(year)

Submission status: Accepted

Solution code:

import sys
x = int(input())
c = 1
r = True
p = 100

while r == True:
    if int(p*1.01) >= x:
        print(c)
        sys.exit()
    else:
        p = int(p*1.01)
        c += 1

Submission status: Accepted

Solution code:
import math

X = int(input())

m = 100
z=0

while X > m:
    m = m * 1.01
    z = z + 1
    m = math.floor(m)


print(z)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
#N, K = map(int, input().split())
# 文字列の入力
X = int(input())
#開業されたN個要素を受け付ける
#list = [input() for i in range(N)]
yokin = 100
i=0
while(yokin < X):
    yokin = int(yokin*1.01)
    #print(yokin)
    i=i+1
#while(i<3760):
#    yokin=yokin*1.01
#    i=i+1
print(i)
#print(yokin)

Submission status: Accepted

Solution code:
x=int(input())

total=100
cnt=1

while True:
    total *= 1.01
    total = int(total)
    if x <= total:
        print(cnt)
        exit()

    cnt+=1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
x = int(input()) 
a = 100
for i in range (1,10**18):
    a = a + math.floor(a*0.01)
    if a >= x:
        print(i)
        break

Submission status: Accepted

Solution code:
import math
listA=[] #appendのために宣言が必要
while True:
    try:
        listA.append(list(map(int,input().split())))

    except:
        break;
        #または、quit(),os.exit()をして止める。

x = listA[0][0]
r = 100
for i in range(1, 10**180):
  r = math.floor(r*1.01)
  if r >= x:
    print(i)
    break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

b = 100
c = 0

while b < X:
    b = int(b*1.01)
    c += 1

print(c)

Submission status: Accepted

Solution code:
import os
import sys
from collections import deque
from collections import Counter
from heapq import heappop,heappush
import math

def main():
	money = int(input())	
	yokin = 100
	count = 0
	while yokin < money:
		yokin = yokin + math.floor((1/100)*yokin)
		count += 1
	print(count)


if __name__ == "__main__":
        main()

Submission status: Accepted

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

count = 0
flag = True
while flag:
  yokin = yokin * (1.01)
  yokin = int(yokin)
  count += 1
  if int(yokin) >= x:
    print(count)
    flag = False

Submission status: Accepted

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

print(y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())
y=100
for i in range(1,10000):
  y=int(y*1.01)
  if x<=y:
    print(i)
    break

Submission status: Accepted

Solution code:
X = int(input())

dep = 100
y = 0

while dep < X:
  y += 1
  dr = int(dep * 0.01)
  dep += dr

print(y)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

X=int(input())

Y=100
ans=0
while(1):
    ans+=1
    Y=Y+int(Y*0.01)
    #print(Y)
    if Y>=X: break

print(ans)

Submission status: Accepted

Solution code:
X = input()
Money = 100
counter = 0

while int(X) > Money:
    Money = int(Money*1.01)
    counter = counter + 1
print(counter)

Submission status: Accepted

Solution code:
import math

x = int(input())
y = 100

for i in range(4000):
    y *= 1.01
    y = math.floor(y) 
    if(y >= x):
      print(i+1)
      exit()

Submission status: Accepted

Solution code:
import sys
import math
k =int(input())
p=100.0
for i in range (1,sys.maxsize):
    p = math.floor(p*1.01)
    if p >= k:
        print(i)
        break;

Submission status: Accepted

Solution code:
X=int(input())
m=100
n=0
while True:

    if m>=X:
        print(n)
        exit()
    else:
        n+=1
        m=int(m*1.01)

Submission status: Accepted

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


m = 100
n = 0
while m < x:
  m = m + math.floor(m*0.01)
  n+=1
  
print(n)

Submission status: Accepted

Solution code:
import math
X = int(input())
a, b = 100, 1
while 1:
    a += math.floor(a * 0.01)
    if a >= X:
        print(b)
        break
    b += 1

Submission status: Accepted

Solution code:
x = int(input())
coin=100
counter=0
while(True):
  coin=int(coin*1.01)
  counter=counter+1
  if coin>=x:
    print(counter)
    break

Submission status: Accepted

Solution code:
import math
m = input()

s = 100
c = 0
count = 1
for i in range(100, int(m)):
  c = s * 0.01
  s = s + math.floor(c)
  if s >= int(m):
    print(count)
    break
  count = count + 1

Submission status: Accepted

Solution code:
end = int(input())
num = 100
for i in range(10**19):
    plus = num * 0.01
    plus = int(plus)
    num += plus
    if num >= end:
        print(i+1)
        break

Submission status: Accepted

Solution code:
x = int(input())
c = 100
cnt = 0
while(1):
    c = int(c * 1.01)
    cnt += 1
    if c >= x:
        break

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
if __name__ == '__main__':
    #s = input().rstrip().split(' ')
    X = int(input())
    #print((math.log(X)-math.log(100))/math.log(1.01))
    acc = 100
    for i in range(3800):
        acc *= 1.01
        acc = math.floor(acc)

        if(acc >= X):
            print(i+1)
            exit()

Submission status: Accepted

Solution code:
import math
X = int(input())
money = 100
t = 1
for i in range(X):
    money += math.floor(money * 0.01)
    if money >= X:
        print(t)
        break
    t += 1

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
from math import floor
def main():
    x = int(readline())
    a = 100
    i = 0
    while a < x:
        a =  floor(a*(1.01))
        i+=1
    print(i)
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
from operator import mul
from functools import reduce
from operator import mul


sys.setrecursionlimit(2147483647)
INF = 10 ** 20
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 1000000007

x = I()
ret = 100
for i in range(10000):
    ret = int(ret * 1.01)
    if ret >= x:
        print(i + 1)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
input = lambda:sys.stdin.readline().strip()
x = int(input())
p = 100
ans = 0
while p<x:
    ans+=1
    p*=(1.01)
    p = math.floor(p)
print(ans)

Submission status: Accepted

Solution code:
import math

X = int(input())

N = 1
updated = 100
while True:
    money = math.floor(updated * 1.01)
    updated = money 
    if money >= X:
        break
    else:
        N += 1

print(N)

Submission status: Accepted

Solution code:
import math

if __name__ == "__main__":
    X = int(input())
    en = 100
    cnt = 0
    while en < X:
        en = en + math.floor(en * 0.01)
        cnt += 1
    print(cnt)

Submission status: Accepted

Solution code:
import math

a = int(input())
b = 100
i = 0
c = 0.01
for i in range(a):
  b += (b * c)
  i+=1
  b = math.floor(b)
  if b>=a:
  		print(i)
  		break

Submission status: Accepted

Solution code:
n = int(input())
i = 100
c = 0
while n > i:
    i *= 1.01
    i //= 1
    c +=1
print(c)

Submission status: Accepted

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

for i in range(10**18):
    a = int(a * (1.01))
    if a >= x:
        print(i+1)
        break

Submission status: Accepted

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

ans = 100
n = 1
while True:
    ans *= 1.01
    ans = math.floor(ans)
    if ans >= x:
        print(n)
        break
    n += 1

Submission status: Accepted

Solution code:
import math

X = int(input())

o = 100
y = 0

while(o < X):
  o = math.floor(o * 1.01)
  y += 1

print (y)

Submission status: Accepted

Solution code:
x = int(input())
count = 0
y= 100
for i in range(3761):
  y=(y*1.01)//1
  count+=1
  if y>=x:
    print(count)
    break

Submission status: Accepted

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

print(year)

Submission status: Accepted

Solution code:
import math

x = int(input())
m = 100

for i in range(1, 1000000000000000000):
  m = math.floor(m * 1.01)
  if m >= x:
    print(i)
    break

Submission status: Accepted

Solution code:
import math

num_year = 0
t_maney = 100
x = int(input())

while t_maney < x:
    num_year += 1
    t_maney = math.floor(t_maney*1.01)

print(num_year)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline
ra = range
enu = enumerate


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_tuple(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(tuple(map(int, read().split())))
    return ret


def read_col(H):
    '''
    H is number of rows
    A列、B列が与えられるようなとき
    ex1)A,B=read_col(H)    ex2) A,=read_col(H) #一列の場合
    '''
    ret = []
    for _ in range(H):
        ret.append(list(map(int, read().split())))
    return tuple(map(list, zip(*ret)))


def read_matrix(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(list(map(int, read().split())))
    return ret
    # return [list(map(int, read().split())) for _ in range(H)] # 内包表記はpypyでは遅いため


MOD = 10**9 + 7
INF = 2**31  # 2147483648 > 10**9
# default import
from collections import defaultdict, Counter, deque
from operator import itemgetter
from itertools import product, permutations, combinations
from bisect import bisect_left, bisect_right  # , insort_left, insort_right
from math import gcd

a = 100
X = read_a_int()
ans = 0
while a < X:
    a = int(a * 1.01)
    ans += 1
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

m = 100
count = 0
while True:
    m = int(m * 1.01)
    count += 1
    if m >= X:
        break
print(count)

Submission status: Accepted

Solution code:
import math

X = int(input())
save_money = 100

for ans_year in range(1, X):
    save_money = math.floor(save_money * 1.01)
    if X <= save_money:
        print(ans_year)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

A = 100
cnt = 0

while A < X:
    A = int(A * 1.01)
    cnt += 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

r = 0.01
s = 100
for i in range(X):
    s=int(s * (1 + r))
    if (s >= X):
        print(i+1)
        break

Submission status: Accepted

Solution code:
X = int(input())
P=100
Y=0

while(1):
    Y=Y+1
    P=P+int(P*0.01)
    if X <= P:
        print(Y)
        break

Submission status: Accepted

Solution code:
X = int(input())
current = 100
year = 0
while current < X:
    fraction = current * 0.01
    if fraction >= 1:
        current = current + int(fraction)
        year = year + 1
print(year)

Submission status: Accepted

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

print(y)

Submission status: Accepted

Solution code:
z = int(input())

a = 100
n = 0
for i in range(1000000):
  b = a*1.01
  a = b//1
  n = n + 1
  if a >= z:
    break
print(n)

Submission status: Accepted

Solution code:
import math

X = int(input())

m = 100
i = 0
while 1:
    m = math.floor(m * 1.01)
    i += 1
    if m >= X:
        break
print(i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

10**18 // 100*101

temp = 100

for i in range(1039999999999999999):
    temp = temp * 1.01 // 1
    # print(temp)
    if temp >= x:
        print(i+1)
        break

Submission status: Accepted

Solution code:
import math
X=int(input())
A=100
count=0

while A < X:
    A=math.floor(A*1.01)
    count+=1
else:
    print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
de = 100
y = 0
X = int(input())
while de < X:
    frac = de * 0.01
    if frac >= 1:
        de = de + int(frac)
        y = y + 1
print(y)

Submission status: Accepted

Solution code:
final_amt = int(input())
has = 100
rate = 1
for i in range(1, 3761):
    has += ((has * 1) // 100)
    #print(has)
    if has >= final_amt:
        break
print(i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X = input()

amount = 100
year = 0
while int(X) > amount:
    amount = int(amount * 1.01)
    #print(amount)
    year += 1

print(year)

Submission status: Accepted

Solution code:
import math
X = int(input())
mon = 100
for num in range (1,999999999999999900):
    mon = mon + math.floor(mon*0.01)

    if mon >= X : break

print(num)

Submission status: Accepted

Solution code:
x = int(input())
cnt = 0
sum = 100
while x > sum:
    cnt += 1
    sum += int(sum*0.01)
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

cnt = 0
m = 100
while m < n :
    m =  int(m * 1.01)
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
x = int(input())
a = 100
for i in range(1, 3761):
    a = int(a * 1.01)
    if a >= x:
        print(i)
        exit(0)

Submission status: Accepted

Solution code:
import math

X = int(input())
K = 100
cnt = 0
while 1:
	cnt += 1
	K = math.floor(K * 1.01)
	if K >= X:
		print(cnt)
		break

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# coding: utf-8

def main():
    X = int(input())
    # a = math.ceil(math.log(X / 100, 1 + 0.01))
    m = 100
    c = 0
    while m < X:
        m = int(m * 1.01)
        c += 1
    print(c)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

n = 1
M = 100

while math.floor(M*1.01) < X:
    n += 1
    M = math.floor(M*1.01)
    
print(n)

Submission status: Accepted

Solution code:
n = int(input())

ginko = 100
count = 0

while True:
    ginko += ginko // 100
    count += 1
    if ginko >= n:
        print(count)
        break

Submission status: Accepted

Solution code:
import math
a = 100.0
x = float(input())
i = 0
while a<x:
  a *= 1.01
  b = math.floor(a)
  a = float(b)
  i += 1
print(i)

Submission status: Accepted

Solution code:
X = int(input())

ans = 100
count = 0
while ans < X:
    ans += int(ans * 0.01)
    count += 1

print(count)

Submission status: Accepted

Solution code:
import math as mt
X = float(input())
t = 100.0
k = 100
a = 0
while True:
    if k < X:
        a += 1
        t = float(k)
        t *= 1.01
        k = mt.floor(t)

    else:
        break
print(a)

Submission status: Accepted

Solution code:
target = int(input())
money = 100
years = 0
while money < target:
  money = int(money*1.01)
  years += 1
  
print(years)

Submission status: Accepted

Solution code:
import math
n=int(input())
a=100
t=1
while(a<n):
    a=int(a+a*0.01)
    t+=1
print(t-1)

Submission status: Accepted

Solution code:
x = int(input())
a = 100
ans = 0
for i in range(10**7):
    ans += 1
    a *= 1.01
    a = int(a)
    if a >= x :
        break
print(ans)

Submission status: Accepted

Solution code:
import math
import sys
def risoku(k):
  return(k+k//100)
x=int(input())
min=math.floor(math.log(x//100,1.01))
k=100
for i in range(min):
  k=risoku(k)
for i in range(min,3761):
  k=risoku(k)
  if (k>=x):
    print(i+1)
    sys.exit()

Submission status: Accepted

Solution code:
import math

x = int(input())
s = 101
cnt = 1

while 1:
    if s < x:
        s = math.floor(s*1.01)
        cnt += 1
    else:
        print(cnt)
        break

Submission status: Accepted

Solution code:
import math

x = int(input())
y = 100
ans = 0
while x > y:
    y = math.floor(y*1.01)
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

Solution code:
X = int(input())

ans = 100
count = 0

while ans < X:
    ans = int(ans * 1.01)
    count += 1
    if ans >= X:
        print(count)

Submission status: Accepted

Solution code:

import math
x=int(input())
a=100
b=1
while(1):
    a=math.floor(a*1.01)
    if (a>=x):
        print(b)
        break
    b+=1

Submission status: Accepted

Solution code:
INT_MAX=10**11+7
MOD=10**9+7
def INPUT():return list(int(i) for i in input().split())
def LIST_1D_ARRAY(n):return [0 for _ in range(n)]
def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)]
#=======================================================================
import math as M
x=int(input())
p=100
years=0
while(p<x):
    p+=int(p/100)
    years+=1
print(years)

Submission status: Accepted

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

Submission status: Accepted

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

x_cnt = 100
cnt = 0
while(x_cnt < x):
    x_cnt = math.floor(x_cnt * 1.01)
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
import math

X = int(input())
ans = 100
cnt = 0

while True:
    ans = ans*1.01
    ans = math.floor(ans)
    cnt += 1
    if X <=ans:
        print(cnt)
        exit()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
m = 100
year=0
target=int(input())
while m<int(target):
    m=int(m*1.01)
    year+=1

print(year)

Submission status: Accepted

Solution code:
x=int(input())
import math
yokin=100
risi=0
for i in range(1,x+1-100):
  risi=int(yokin*0.01)
  yokin+=risi
  if yokin >= x:
    print(i)
    break

Submission status: Accepted

Solution code:
import math 
x = int(input())
y = 100
i = 1
while( y< x):
    # print(y)
    y = y*(1.01)
    y = math.floor(y)
    i += 1
print(i-1)

Submission status: Accepted

Solution code:
n = int(input())

p = 0.01
kane = 100
c = 0
while True:
    if n <= kane:break
    c += 1
    kane += int(kane*p)

print(c)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
x=int(input())
money=[100]
i=0
while True:
    new = int(money[i]*1.01)
    money.append(new)
    i+=1
    if money[-1]>=x:
        print(i)
        break
    else:
        continue

Submission status: Accepted

Solution code:
x = int(input())
a = 100
i = 1
while(1):
    a = int(a + 0.01*a)
    if (a>=x):
        print(i)    
        break
    i +=1

Submission status: Accepted

Solution code:
x = int(input())
money = 100
num = 1 / 100
count = 0

while money < x:
  money = int(money + (money * num))
  count = count + 1
else:
  print(count)

Submission status: Accepted

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

s=100
count=0

while N > s:
    s*=1.01
    s=math.floor(s)
    count+=1
print(count)

Submission status: Accepted

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

start = Decimal("100")

risi = Decimal("1.0100000")
year = 1

while(True):
    start = math.floor(Decimal(start) * Decimal(risi))
    #print(start)
    if(start >= X):
        break
    year += 1
    
    
print(year)

Submission status: Accepted

Solution code:

# Python 3
from sys import stdin, stdout

if __name__ == "__main__":
    x = stdin.readline()
    x = int(x)

    curr = 101
    ans = 1

    while curr < x:
        curr *= 101
        curr //= 100
        ans += 1
    
    stdout.write(str(ans) + '\n')

Submission status: Accepted

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