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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

while X >= now_money:
    now_money += now_money *0.01
    now_money = math.floor(now_money)
    i += 1
print(i)

Submission status: Wrong Answer

Solution code:
import math

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

while X > now_money:
    now_money += now_money *0.01
    now_money = math.floor(now_money)
    i += 1
print(i)

Submission status: Wrong Answer

Solution code:
import math

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

while X > now_money:
    now_money += now_money *0.01
    now_money = math.floor(now_money)
    i += 1
    print( now_money )
print(i)

Submission status: Wrong Answer

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

deposit = 100
year = 0
while deposit < X:
    deposit = math.floor(deposit * 1.01)
    year += 1

print(year)

Submission status: Wrong Answer

Solution code:
x = int(input())

ans = 0
r = 1.01
ret = 100
while( x - ret > 0 ):
  ret = int( ret * r )
  ans += 1
print( ans )

Submission status: Wrong Answer

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

while x > yen:
    yen = int(yen*1.01)
    ans += 1

print(ans)

Submission status: Wrong Answer

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

year = 0
while Y < X:
    year += 1
    Y += int(Y/100)
print(year)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
balance = 100
counter = 0

while balance < X:
    counter += 1
    balance = math.floor(balance * 1.01)
print(counter)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

base = 100
ans = 0

while True:
    base = int(base * 1.01)
    ans += 1
    #print(base)
    if base >= x:
        print(ans)
        break

Submission status: Wrong Answer

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

print(year)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import floor
X = int(input())
Y = 100
n = 0
while Y < X :
    n += 1
    Y = Y+floor(Y * 0.01)
print(n)

Submission status: Wrong Answer

Solution code:
from math import floor

def main():
    X=int(input())
    tmp=100
    for year in range(1,4000):
        tmp *= 1.01
        tmp = floor(tmp)
        if tmp >= X:
            print(year)
            exit()

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import floor
X=int(input())
ans=100
count=0
while ans<X:
    ans+=floor(ans*0.01)
    count+=1
print(count)

Submission status: Wrong Answer

Solution code:
from math import floor
X=int(input())
ans=100
count=0
while ans<X:
    ans=ans+floor((ans*0.01))
    ans=floor(ans)
    count+=1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import floor
X=int(input())
ans=100
count=0
while ans<X:
    ans=ans+(ans*0.01)
    ans=floor(ans)
    count+=1
print(count)

Submission status: Wrong Answer

Solution code:
from math import floor
X=int(input())
ans=100
count=0
while ans<=X:
    ans=ans+(ans*0.01)
    ans=floor(ans)
    count+=1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x=int(input())
n=1
num=101
while True:
    if num>=x:
        break
    else:
        n+=1
        num=int(num*1.01)
        
print(n)

Submission status: Wrong Answer

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

print(cnt)

Submission status: Wrong Answer

Solution code:
x=int(input())

c=100
i=0
while True:
    i+=1
    c=int(c*1.01)
    if x<=c:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
x=int(input())

c=100
for i in range(1,10**10):
    c=int(c*1.01)
    if x<=c:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
X = int(input())
k = 0
res = 100
for i in range (1, 4200):
  res += int(res * 0.01)
  if res >= X:
    k = i
    break
print(k)

Submission status: Wrong Answer

Solution code:
X = int(input())
k = 0
res = 100
for i in range (1, 4200):
  res += res * 0.01
  if res >= X:
    k = i
    break
print(k)

Submission status: Wrong Answer

Solution code:
X = int(input())
k = 0
res = 100
for i in range (1, 10000000):
  res = int(res * 1.01)
  if res >= X:
    k = i
    break
print(k)

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())
k = 0
res = 100
for i in range (1, 4200):
  res = int(res * 1.01)
  if res >= X:
    k = i
    break
print(k)

Submission status: Wrong Answer

Solution code:
X = int(input())
k = 0
res = 100
for i in range (1, 4200):
  res = int(res * 1.01)
  print(res)
  if res >= X:
    k = i
    break
print(k)

Submission status: Wrong Answer

Solution code:
X = int(input())
k = 0
res = 100
for i in range (1, 4200):
  res = int(res * 1.01)
  if res > X:
    k = i
    break
print(k)

Submission status: Wrong Answer

Solution code:
x = 500
# x = int(input())
n = 100
y = 0

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

while y < x:
    y = int(y*1.01)
    count += 1

print(count)

Submission status: Wrong Answer

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

while y < x:
    y = 1.01*y
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
# B 1%

import math

X = int(input())
Y = 100

cnt = 0
while Y < X:
  cnt += 1
  Y = math.floor(Y*1.01)

print(cnt)

Submission status: Wrong Answer

Solution code:
import sys
X = int(input())
now = 100
for i in range(1,10**6):
  now = int(now + now*0.01)
  if now >= X:
    break
print(i)

Submission status: Wrong Answer

Solution code:
import sys
X = int(input())
now = 100
for i in range(1,10**4):
  now = int(now + now*0.01)
  if now >= X:
    break
print(i)

Submission status: Wrong Answer

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

while X > yokin:
    yokin = int(yokin*1.01)
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())

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

print(cnt)

Submission status: Wrong Answer

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

while X > yokin:
    yokin = int(yokin*1.01)
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import math

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

while X > math.floor(yokin):
    yokin = int(yokin*1.01)
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

print(count)

Submission status: Wrong Answer

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

while b < x:
    b = int(b * 1.01)
    n += 1

print(n)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

for i in range(1,10**18):
  y = math.floor((y*1.01))

  if y >= x:
    print(i)
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X=int(input())
c=0
i=100
for a in range(100000000000000000):
    c+=1
    i=int(100*i*1.01/100)
    if i >=X:
        print(c)
        break

Submission status: Wrong Answer

Solution code:
X=int(input())
c=0
i=100
for a in range(100000000000000000):
    c+=1
    i=int(i*1.01)
    if i >=X:
        print(c)
        break

Submission status: Wrong Answer

Solution code:
x = int(input())
a = 100
for i in range(6000):
    if a >= x:
        print(i)
        break
    a = int(a * 1.01)

Submission status: Wrong Answer

Solution code:
x = int(input())
a = 100
for i in range(5000):
    if a >= x:
        print(i)
        break
    a = int(a * 1.01)

Submission status: Wrong Answer

Solution code:
x = int(input())
a = 100
for i in range(2000):
    if a >= x:
        print(i)
        break
    a = int(a * 1.01)

Submission status: Wrong Answer

Solution code:
x = int(input())
a = 100
for i in range(500):
    if a >= x:
        print(i)
        break
    a = int(a * 1.01)

Submission status: Wrong Answer

Solution code:
X = int(input())

c = 0
i = 100
while True:
    c += 1
    i = i + int(i/100)
    if  X <= i:
        break
print(c)

Submission status: Wrong Answer

Solution code:
X = int(input())

c = 0
i = 100
while True:
    c += 1
    i = int(i + i/100)
    if  X <= i:
        break
print(c)

Submission status: Wrong Answer

Solution code:
X = int(input())

c = 0
i = 100
while True:
    c += 1
    i = int(1.01*i)
    if  X <= i:
        break
print(c)

Submission status: Wrong Answer

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

count = 0
money = 100
while True:
    count += 1
    money = int(decimal.Decimal(float(money * 1.01)))
    if money >= X:
        print(count)
        exit()

Submission status: Wrong Answer

Solution code:
X = int(input())

count = 0
money = 100
while True:
    count += 1
    money += int(money*0.01)
    if money >= X:
        print(count)
        exit()

Submission status: Wrong Answer

Solution code:
X = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

while b < X:
    b += b / 100
    ans += 1

print(ans)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
x=int(input())
mon = 100
cnt = 0
while 1:
    if mon < x:
        mon = math.floor(mon*1.01)
        cnt += 1
    else:
        print(cnt)
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
c = 0
n = 100
while(True):
    n = (n*1.01)
    c += 1
    if x <= n:
        print(c)
        quit()
    n = int(n)

Submission status: Wrong Answer

Solution code:
x = int(input())
c = 0
n = 100
while(True):
    n = int(n*1.01)
    c += 1
    if x <= n:
        print(c)
        quit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
amount = 100
res = 0
while amount < x:
  amount = amount * 1.01 // 1
  res += 1

print(res)

Submission status: Wrong Answer

Solution code:
x = int(input())

acnt = 100
ans = 0

import math
while acnt < x:
    #print(acnt)
    ans += 1
    acnt = math.floor(acnt * 1.01)
    #print(acnt)

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

acnt = 100
ans = 0

import math

while acnt < x:
    #print(acnt)
    ans += 1
    acnt *= 1.01
    acnt = math.floor(acnt)
    #print(acnt)

print(ans)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
X = int(input())
yen = 100
year = 0
while yen < X:
  yen = int(yen * 1.01)
  year += 1
print(year)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil
from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
inf = 10**17
mod = 10**9 + 7
#s=input().rstrip()

x=I()
pr=100
for i in range(100000):
    pr=int(pr*1.01)
    if pr>=x:
        print(i+1)
        sys.exit()

Submission status: Wrong Answer

Solution code:
x = int(input())
b = 100
cnt = 0

while b < x:
  cnt+=1
  b = int(b * 1.01)

print(cnt)

Submission status: Wrong Answer

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

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

print(y)

Submission status: Wrong Answer

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

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

print(y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


def solve():
    X = int(input())
    y = 0
    now = 100
    while now < X:
        now = int(now * 1.01)
        y += 1
    print(y)


def main():
    solve()


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
from math import floor

X = int(input())

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

Submission status: Wrong Answer

Solution code:
X = int(input())
En=100
N=0

while En<X:
  En=En*1.01
  N=N+1

print(N)

Submission status: Wrong Answer

Solution code:
X = int(input())
En=100
N=0

while En<=X:
  En=int(En*1.01)
  N=N+1

print(N)

Submission status: Wrong Answer

Solution code:
X = int(input())
En=100
N=0

while En<X:
  En=int(En*1.01)
  N=N+1

print(N)

Submission status: Wrong Answer

Solution code:
X=int(input())
i=100
year=0
while i<X:
  add=int(i*0.01)
  i+=add
  #i+=i//100
  year+=1
print(year)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

X = int(input())

i = 0
money = 100

while True:
    i += 1
    money = int(money * 1.01)
    if X <= money:
        print(i)
        sys.exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# ABC165 B
import math
x = int(input())
n = 100
y = 0

while x > n:
    # 小数点以下切り捨て
    n += math.floor(0.01 * n)
    y += 1

print(y)

Submission status: Wrong Answer

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

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

print(year)

Submission status: Wrong Answer

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

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

print(year)

Submission status: Wrong Answer

Solution code:
x = int(input())

a = 100
cnt = 0

while a < x:
  a = int(a * 1.01)
  cnt += 1

print(cnt)

Submission status: Wrong Answer

Solution code:
x = int(input())

a = 100
cnt = 0

while a <= x:
  a = int(a * 1.01)
  cnt += 1

print(cnt)

Submission status: Wrong Answer

Solution code:
x = int(input())

a = 100
cnt = 0

while a <= x:
  a = a * 1.01
  cnt += 1

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
balance = 100
years = 0
while True:
    balance = math.floor(balance * 1.01)
    years += 1
    if balance >= x:
        break
print(years)

Submission status: Wrong Answer

Solution code:
from decimal import Decimal 
import math

def main():
    x = Decimal(input())
    y = 0
    p = Decimal(100)
    while p < x:
        p *= Decimal(1.01)
        p = math.floor(p) 
        y += 1

    print(y)

main()

Submission status: Wrong Answer

Solution code:
from decimal import Decimal 
import math

def main():
    x = int(input())
    y = 0
    p = Decimal(100)
    while p < x:
        p *= Decimal(1.01)
        p = math.floor(p) 
        y += 1

    print(y)

main()

Submission status: Wrong Answer

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

    print(y)

main()

Submission status: Wrong Answer

Solution code:
import math

x = float(input())

ny = (math.log2(x) - math.log2(100)) / math.log2(1.01)

ny = math.ceil(ny)

print(ny)

Submission status: Wrong Answer

Solution code:
x=int(input())
result=100
count=0
while x>result:
    count+=1
    result=int(result*1.01)
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(year)

Submission status: Wrong Answer

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

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

print(year)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
hoge=100
for i in range(1,4000):
  hoge+=hoge/100
  hoge=int(hoge)
  if(hoge>=n):
    print(i)
    exit()

Submission status: Wrong Answer

Solution code:
n=int(input())
hoge=100
for i in range(1,4000):
  hoge=hoge*1.01
  hoge=int(hoge)
  if(hoge>=n):
    print(i)
    exit()

Submission status: Wrong Answer

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

while m<X:
  m = int(1.01*m)
  a+=1

print(a)

Submission status: Wrong Answer

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

while 1.01*m<X:
  m = int(1.01*m)
  a+=1

print(a)

Submission status: Wrong Answer

Solution code:
from math import floor

X=int(input())

i = 1
money = 100
while 1:
  money = money + floor(money*.01)
  if money>=X:
    break
  i+=1

print(i)

Submission status: Wrong Answer

Solution code:
from math import floor

X=int(input())

i = 1
money = 100
while 1:
  money = floor(money*1.01)
  if money>=X:
    break
  i+=1

print(i)

Submission status: Wrong Answer

Solution code:
X=int(input())

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

print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    X = int(input())
    v = 100
    ans = 0
    while True:
        ans += 1
        v += int(v / 100)
        if v >= X:
            print(ans)
            break


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    X = int(input())
    v = 100
    ans = 0
    while True:
        ans += 1
        v = int(v * 1.01)
        if v >= X:
            print(ans)
            break


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
X = int(input())

a = 100
c = 0

while a < X:
  a = a*1.01//1
  c += 1
print(c)

Submission status: Wrong Answer

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

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

print(year)

Submission status: Wrong Answer

Solution code:
X = int(input())

n = 0
savings = 100

while savings < X:
    savings += int(savings / 100)
    n += 1

print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

while a < X:
  a = a*1.01//1
  c += 1
  
print(c)

Submission status: Wrong Answer

Solution code:
X = int(input())

a = 100
c = 0

while a < X:
  a = a*1.01//1
  c += 1
print(c)

Submission status: Wrong Answer

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

a = 100
c = 0

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

Submission status: Wrong Answer

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

a = 100
b = 1.01
c = 0

while a < X:
  a = math.floor(a*b)
  c += 1
print(c)

Submission status: Wrong Answer

Solution code:
X = int(input())

a = 100
b = 1.01
c = 0

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

Submission status: Wrong Answer

Solution code:
X = int(input())

a = 100
b = 1.01
c = 0

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

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
bank = 100

y = 0
while bank < x:
    bank += math.floor(bank/100)
    y += 1
print(y)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
bank = 100

y = 0
while bank < x:
    bank = math.floor(bank * 1.01)
    y += 1
print(y)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

    return cnt

print(main())