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())
ans = 0
c = 100
while True:
  c = int(c * 1.01)
  ans += 1
  if c >= x:
    break
print(ans)

Submission status: Accepted

Solution code:
X = int(input())

money = 100
count = 0

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

print(count)

Submission status: Accepted

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

Submission status: Accepted

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

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())
a = 100
i = 0
while a < x:
    a *= 1.01
    a = int(a)
    i += 1

print(i)

Submission status: Accepted

Solution code:
import sys
def main():
    X=int(sys.stdin.readline())
    x,i=100,0
    while x<X:x,i=int(x*1.01),i+1
    print(i)
if __name__=='__main__':main()

Submission status: Accepted

Solution code:
x = int(input())


ans = 0
money = 100
while x > money:
    rishi = int(money * 0.01)
    money += rishi
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
X = int(input())

initial_value = 100
count = 0

while True:
    initial_value = str(initial_value * 101)
    initial_value = int(initial_value[0:-2])
    count += 1
    if initial_value >= X:
        print(count)
        break

Submission status: Accepted

Solution code:
x = int(input())

yokin = 100
cnt = 0
while yokin < x:
    yokin += int(yokin * 0.01)
    cnt += 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    X = int(input())
    m = 100
    i = 0
    while m < X:
        m = int(m * 1.01)
        i += 1
    print(i)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

x = int(input())
i = 100
c = 0

while i < x:
    i = i + math.floor(i * 0.01)
    c += 1

print(c)

Submission status: Accepted

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

print(n)

Submission status: Accepted

Solution code:
x=int(input())
n=100
count=0
while n < x:
  m=n*101
  M=str(m)
  N=M[:-2]
  n=int(N)
  count+=1
else:
  print(count)

Submission status: Accepted

Solution code:
def resolve():
    X = int(input())
    count = 0
    money = 100
    for i in range(X):
        money = money * 101 // 100
        count = count + 1
        if money >= X:
            break
    print(count)
resolve()

Submission status: Accepted

Solution code:
import math
x=int(input())
n=0
start=100
while True:
    n+=1
    start+=start/100
    start=math.floor(start)
    if start>=x:
        print(n)
        break

Submission status: Accepted

Solution code:
X=int(input())

a=100

for i in range(3800):
  if a>=X:
    print(i)
    break
  else:
    a=(a*1.01)//1
  if a>10**6:
    a/(10**6)
    X/(10**6)

Submission status: Accepted

Solution code:
def main():
    X = int(input())
    a = 100
    for x in range(X):
        if a >= X:
            print(x)
            return
        a += int(a / 100)



if __name__=="__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

print(y)

Submission status: Accepted

Solution code:
X=int(input())
Y=0
R=0.01

C=100

while C<X:
    Y+= 1
    C= C*(1+R)//1
    
print(Y)

Submission status: Accepted

Solution code:
import math

x=int(input())
ans=0
while x>100:
	x=math.ceil(x/1.01)
	ans=ans+1
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

x = input()
cnt = 0
sum = 100

while True:
  cnt += 1
  sum += (math.floor(sum * 0.01))
  if sum >= int(x):
    break

print(cnt)

Submission status: Accepted

Solution code:

X = int(input())

ans = 100
y = 0
while (1):
    ans = ans + ( (ans * 100) // 10000 )
    y = y + 1
    if ans >= X:
        break
    
print(y)

Submission status: Accepted

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

while 1:
    balance *= 1.01
    balance = int(balance)
    if balance >= x:
        break
    n += 1

print(n)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/local/bin python
# -*- coding: utf-8 -*-


money = 100
n = 0
x = int(input())
while True:
    money = int(money * 1.01)
    n += 1
    if x <= money:
        print(n)
        exit()

Submission status: Accepted

Solution code:
import math


def solve():
    X = int(input())
    money = 100
    years = 0
    while True:
        money = math.floor(money * 1.01)
        years += 1
        if X <= money:
            print(years)
            exit()



if __name__ == '__main__':
    solve()

Submission status: Accepted

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

while a < X:
    a += math.floor(a * 0.01)
    cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
x=int(input())
money=100
year=0
while money<x:
    add=int(money*0.01)
    money+=add
    year+=1
print(year)

Submission status: Accepted

Solution code:
import math

x = int(input())

money = 100
rate = 0.01
year = 0
while x > money:
  money = money + math.floor(money*rate)
  year += 1

print(year)

Submission status: Accepted

Solution code:
X = int(input())
Count = 0
Money = 100

while Money < X:
    Next  = str(Money*101)
    Money = int(Next[:-2])
    Count = Count+1

print(Count)

Submission status: Accepted

Solution code:
x = int(input())

ans = 0
money = 100
while money < x:
  money *= 1.01
  money = int(money)
  ans += 1
print(ans)

Submission status: Accepted

Solution code:
import math
X = int(input())
m = 100
c = 0

while m < X:
  m *= 1.01
  m = math.floor(m)
  c += 1
print(c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

depo =100
i=1
while depo > 1:
    depo = int(depo*1.01)
    if depo >= X:
        break
    
    i +=1
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

deposit = 100
ans = 0

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

print(ans)

Submission status: Accepted

Solution code:
import math
x = int(input())
a = 100
ans = 0
for i in range(4000):
    a *= 1.01
    a = math.floor(a)
    ans += 1
    if a >= x: break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
A = 100
for i in range(1,1000000):
  A = int(A*1.01)
  if A >= X:
    print(i)
    exit(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

start = 100
i = 0
while start < X:
    start = int(start * 1.01)
    i += 1
print(i)

Submission status: Accepted

Solution code:
import math


def actual(x):
    yen = 100
    elapsed_year = 0

    while True:
        yen = math.floor(yen * 1.01)
        elapsed_year += 1

        if yen >= x:
            return elapsed_year

x = int(input())
print(actual(x))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

money = 100
ans = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
#ゴリ押し解法
mny = 100
count = 0
while(x > mny):
	mny += int(mny*0.01)
	count += 1
print(count)

Submission status: Accepted

Solution code:
x = int(input())

p = 100

time = 0
while x > p:
    time += 1
    p += int(p/100.0)
print(time)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
	X = int(input())
	low = 0
	high = 6000
	ans = 0
	while low <= high:
		mid = low + (high - low) // 2
		money = 100
		for i in range(1, mid + 1):
			money = int(money + (money * 1) / 100)
		if money >= X:
			ans = mid
			high = mid - 1
		else:
			low = mid + 1;
	return ans

if __name__ == '__main__':
	print(main())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

a = 100
year = 0
while(x>a):
    a = int(1.01 * a)
    year += 1

print(year)

Submission status: Accepted

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

Submission status: Accepted

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

year_ = 0
tyokin = 100

while all:
    if(tyokin >= X):
        break
    tyokin = math.floor(tyokin * 1.01)
    year_ = year_ +1
print(year_)

Submission status: Accepted

Solution code:
max = int(input())
year = 0
money = 100
while True:
    year += 1
    money = int(money * 1.01)
    if money >= max:
        break
print(year)

Submission status: Accepted

Solution code:
x = int(input())

cur = 100
n = 0
while cur < x:
    interest = int(cur * 0.01)
    cur += interest
    n += 1
print(n)

Submission status: Accepted

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

while(x > deposit):
  deposit = int(deposit * 1.01)
  n += 1
  
print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
x=int(input())
k=100
i=0
while True:
    i=i+1
    k=math.floor(k*101/100)
    if k>=x:
        break
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    x = int(input())
    a = 3760
    res = 100
    cnt = 0
    for i in range(1, a+1):
        res = int(res * 1.01)
        cnt += 1
        if res >= x:
            print(cnt)
            break
        
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
X = int(input())

m = 100
y = 0
while m < X:
    y += 1
    m = int(m * 1.01)

print(y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
n = 100
# デフォルト0スタートでカウント
count = 0
while n < X:
  # 終点があるからwhileで入力値に到達するまで回す
  count += 1
  n = int(n * 1.01)
print(count)

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

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

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

print(year)

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

C = 100
ans = 0

while(int(C) < X):
    C = int(C) * 1.01
    ans+=1

print(ans)

Submission status: Accepted

Solution code:
x = int(raw_input())
start = 100
ans = 0
while start < x:
	ans += 1
	start += int(start*0.01)
print ans

Submission status: Accepted

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

while balance < x:
    interest = int(1 / 100 * balance)
    balance += interest
    years=years+1

print(years)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
x = int(input())
i = 1
sum = 100
while True:
  sum = math.floor(sum * 1.01)
  if x <= sum:
    break
  i += 1
print(i)

Submission status: Accepted

Solution code:
def main():
  K = int(input())
  S = 100
  for i in range(1, 3761):
    S = int((S*101)/100)
    if S >= K:
      print(i)
      return      
main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

year = 0
num = 100

while num < x:
  num = num * 1.01
  year += 1
  num = int(num)

  
print(year)

Submission status: Accepted

Solution code:
X = int(input())

i = 100
c = 0
while i < X:
    i = i + int(i * .01)
    c += 1
print(c)

Submission status: Accepted

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

Submission status: Accepted

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

    k = 100
    ans = 0
    for i in range(0, 10**18):
        if k >= X:
            print(i)
            break
        k = int(k * 1.01)

if __name__ == '__main__':
    main()

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:
i = 0
x = int(input())
y = 100
while x > y:
  y = int(y * 101 /100)
  i += 1
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=100
i=1
N=int(input())
while True:
  a=int(a*(1.01))
  if a>=N:
    print(i)
    break
  i=i+1

Submission status: Accepted

Solution code:
def resolve():
    coin = 100
    goal = int(input())
    year = 0

    while(coin < goal):
        coin += int(coin * 0.01)
        year += 1

    print(year)

resolve()

Submission status: Accepted

Solution code:
X = int(input())

ans = 0
Money = 100

while Money < X:
    Money = int(Money * 1.01)
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
#ABC165b

import math

x = int(input())

money = 100
rate = 1.01

year = 0

while True:
    money = math.floor(money*rate)
    year += 1
    if money >= x:
        break

print(year)

Submission status: Accepted

Solution code:
x = int(input())

count = 0
a = 100

while True:
    count += 1
    a *= 1.01
    a = int(a)
    if a >= x:
        print(count)
        break

Submission status: Accepted

Solution code:
x = int(input())
cnt=0
money=100
while True:
  money = int(money*1.01)
  cnt += 1
  #print(x, money, cnt)
  if x <= money:
    break
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())
money=100
year=1
while True:
    money=(money*1.01)//1
    if money>=x:
        break
    else:
        year+=1
print(year)

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:

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

Submission status: Accepted

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

count = 0
while(money >= begin):
    begin = int(begin) * 1.01
    # print(int(begin))
    count += 1

print(count)

Submission status: Accepted

Solution code:
import math
X = int(input())
A = []
A.append(100)
Frag = 0
for i in range(X-A[0]):
  A.append(math.floor(A[i]*1.01))
  if A[i+1] >= X:
    print(i+1)
    break

Submission status: Accepted

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

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

Submission status: Accepted

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

print(year)

Submission status: Accepted

Solution code:
x = int(input())
deposit = 100
for year in range(1, 10**10):
    deposit = int(deposit * 1.01)
    if deposit >= x:
        print(year)
        exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(i)

Submission status: Accepted

Solution code:
X = int(input())
Money = 100
Year = 0

while Money < X:
    Money = int(1.01 * Money)
    Year += 1
print(Year)

Submission status: Accepted

Solution code:
import math 
X=int(input())
mon=100
年=0

while X>mon:
    mon=math.floor(mon*1.01)
    年=年+1
print(年)

Submission status: Accepted

Solution code:
X = int(input())

m = 100
count = 0
while m < X:
    m = int(m * 1.01)
    count += 1
print(count)

Submission status: Accepted

Solution code:
X = int(input())

m = 100
count = 0
while m < X:
    m *= 1.01
    m = int(m)
    count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

ans = 100
i = 1
while True:
    ans = int(ans*1.01)
    if ans >= X:
        print(i)
        exit()
    else:
        i += 1

Submission status: Accepted

Solution code:
X=int(input())
A=101
n=1
import math
while X>A:
    n+=1
    A=math.floor(A*101/100)
print(n)

Submission status: Accepted

Solution code:
import math as M
X = int(input())
P = 100
for i in range(1,4000):
    P += M.floor(P/100)
    if P>=X:
        print(i)
        break

Submission status: Accepted

Solution code:
import math

X = int(input())

total = 100
count = 0
while True:
    if total >= X:
        break

    total = total + math.floor(total*0.01)
    count +=1

print(count)

Submission status: Accepted

Solution code:
X = int(input())

ans = 100
cnt = 0
while ans <= X:
    ans = ans + int(ans * 0.01)
    cnt += 1
    if ans == X:
        cnt -= 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

balance = 100
ans = 0
while balance < x:
    balance = int(balance*0.01)+balance
    ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
s = 100
y = 0

def year():
  s = 100
  y = 0
  while 1:
    s = s + s/100*1//1
    y += 1
    
    if s >= N:
      print(y)
      exit()
      
year()

Submission status: Accepted

Solution code:
import math

x=int(input())
m=100
c=0

while m<x:
  m=math.floor(m*1.01)
  c+=1
  
print(c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
n = 100
ret = 0
while X > n:
    n = int(n * 1.01)
    ret += 1
print(ret)

Submission status: Accepted

Solution code:
import math

x = int(input())

m = 100
cnt = 0

while m < x:
  m = math.floor(m * 1.01)
  cnt += 1
  
print(cnt)

Submission status: Accepted

Solution code:
x=int(input())
s=100
a=0
for a in range(0,100000000):
    s=int(1.01*s)
    if x<=s:
        print(a+1)
        break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

    n = 100
    count = 0
    while x > n:
        n *= 1.01
        n = math.floor(n)
        count += 1
    print(count)
resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X=int(input())

MONEY=100

Year=0

while True:
    MONEY=int(MONEY*1.01)
    Year+=1
    if MONEY>=X:
        break

print(Year)

Submission status: Accepted

Solution code:
x = int(input())

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

print(year)

Submission status: Accepted

Solution code:

x=int(input())

s=100

from itertools import count

for c in count(0):
    if s >= x:
        print(c)
        exit()
    s = int(s * 1.01)

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    X = int(input())
    ans = 0
    P = 100
    while P < X:
        ans += 1
        P += P // 100
    print(ans)
    return


main()

Submission status: Accepted

Solution code:
X = int(input())

ori = 100
counter = 0
while(ori < X):
    ori = int(ori*1.01)
    counter += 1

print(counter)

Submission status: Accepted

Solution code:
import math

X=int(input())
count=0
# count=float(count)
atcor=100
atcor=int(atcor)


while True:
    
    if atcor>=X:
        print(count)
        break
    else:
        p=atcor/100
        atcor=atcor+p
        atcor=math.floor(atcor)
        count+=1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

Solution code:
X = int(input())

S = 100
Y = 0

while X > S:
    S += S // 100
    Y += 1

print(Y)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

while money < x:
    money *= 1.01
    money //= 1
    year += 1

print(year)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
A = 100
t = 0
while(A<X):
    A = int(A * (1.01))
    t += 1

print(t)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans_year)

Submission status: Accepted

Solution code:
import sys
from collections import deque
import copy
def main():
    X = int(input())
    money = 100
    year = 0
    while money < X:
        money = int(1.01 * money)
        year += 1
    print(year)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X = int(input())

deposits = 100
year = 0

while deposits < X:
    deposits = math.floor(deposits * 1.01)
    year = year + 1

print(year)

Submission status: Accepted

Solution code:
X = int(input()) 
num = 100
year = 0
while(X > num):
    num = int(num + (num * 0.01))
    year = year + 1
print(year)

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from numba import njit


@njit('i8(i8)', cache=True)
def solve(X):
    money = 100
    res = 0
    while (money < X):
        money *= 1.01
        money = int(money)
        res += 1
    return res


def main():
    input = sys.stdin.buffer.readline
    X: int = int(input())
    print(solve(X))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
from numba import njit


@njit('i8(i8)')
def solve(X):
    money = 100
    res = 0
    while (money < X):
        money *= 1.01
        money = int(money)
        res += 1
    return res


def main():
    input = sys.stdin.buffer.readline
    X: int = int(input())
    print(solve(X))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys


def solve(X):
    money = 100
    res = 0
    while (money < X):
        money *= 1.01
        money = int(money)
        res += 1
    return res


def main():
    input = sys.stdin.buffer.readline
    X: int = int(input())
    print(solve(X))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
from numba import njit, i8


@njit(i8(i8), cache=True)
def solve(X):
    money = 100
    res = 0
    while (money < X):
        money *= 1.01
        money = int(money)
        res += 1
    return res


def main():
    input = sys.stdin.buffer.readline
    X: int = int(input())
    print(solve(X))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
t_have = 100
t_need_achieve = int(input())
count_year = 0
while t_have < t_need_achieve:
    t_have += t_have // 100
    count_year += 1
print(count_year)

Submission status: Accepted

Solution code:
X = int(input())

money = 100
count = 0

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

print(count)

Submission status: Accepted

Solution code:
from math import floor

x = int(input())

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

print(year)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

year = 0
money = 100
i = 0

while i == 0:
    money += int(money * 0.01)
    if money >= X:
        i = 1
    year += 1

print("{}".format(year))

Submission status: Accepted

Solution code:
N = int(input())
yokin = 100
count = 0
while yokin < N:
  yokin = int(yokin * 1.01)
  count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X=int(input())
count=0
i = 100
while X>i:
    i = int(i * (1+0.01))
    count = count +1

print(count)

Submission status: Accepted

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

i = 100
c = 0
r = 0.01
while(True):
	i += math.floor(i*r)
	c += 1
	if i >= x:
		break
print(c)