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 numpy as np

def main():
    x = int(input())
    money = 100
    ans = 0
    while x > money:
        money += money * 0.01
        ans += 1
        money = np.floor(money)
        #print(money)
        #print(ans)
    
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

p=100

for i in range(1,10000000):
	p=p+(p//100)
	if p>=x:
		print(i)
		break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

Solution code:
import math

x = int(input())
m = 100
r = 0.01

y = 1

while True:
    m=m+m*r
    m=math.floor(m)

    if m>=x:
        break

    y=y+1

print(str(y))

Submission status: Accepted

Solution code:
import math
X=float(input())
T=100
i=0
while T<X:
    T=T+ math.floor(T*0.01)
    i+=1
print(i)

Submission status: Accepted

Solution code:
import math

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

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

print(n)

Submission status: Accepted

Solution code:
Target = int(input())
original = 100
i=1;
while(1):
 original = original + int(original*0.01)
 if(original >= Target):
   print(i)
   break;
 i=i+1;

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

x = int(input());

a = 100;
i = 0;

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

Submission status: Accepted

Solution code:
import math as M
a = int(input())
n = 0

while a > 100 :
    a = M.ceil(a / 1.01)
    n += 1
print(n)

Submission status: Accepted

Solution code:
x = int(input())

a = 100

y = 0
while x > a:
    y += 1
    a = a + int(a*0.01)

print(y)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(1,3761):
    s=math.floor(s*(1.01))
    if s>=X:
        print(i)
        break
    else:
        continue

Submission status: Accepted

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

while money < x:
    v = 0.01 * money;
    r = v // 1;
    money = r + money;
    year = year + 1;

print(year);

Submission status: Accepted

Solution code:
x = int(input())
now = 100
for i in range(1,100000):
  now *= 1.01
  now //= 1
  if now >= x:
    print(i)
    break

Submission status: Accepted

Solution code:
X = int(input())

a = 100
for i in range(1, 5000):
    v = int(a * (1.01))
    if v >= X:
        break
    else:
        a = v

print(i)

Submission status: Accepted

Solution code:
X=int(input())


res=100
count=0

while True:
    res*=1.01
    res=res//1
    count+=1
    if res>=X:
        print(count)
        break

Submission status: Accepted

Solution code:
import math

X = int(input())

res = 100
count = 0
while X > res:
    res = math.floor(res * 1.01)
    count +=1

print(str(count))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(count)

Submission status: Accepted

Solution code:
X = int(input())
a = 100
c = 0
while True:
    b = int(a * 1.01)
    if b >= X:
        c += 1
        print(c)
        break
    else:
        a = b
        c += 1

Submission status: Accepted

Solution code:
import math
x = int(input())
n = 16 // (math.log10(1.01))
a = 100
cnt = 0

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

'''
for i in range(1, math.floor(n)+1):
    a = math.floor(a * 1.01)
    cnt += 1
    if a >= x:
        break
    else:
        continue
'''

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
        
y = 1
money = 101

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

print(y)

Submission status: Accepted

Solution code:
import math


x = int(input())
p = 100
y = 1
while True:
    p += math.floor(p * 0.01)
    if p >= x:
        print(y)
        exit()
    y += 1

Submission status: Accepted

Solution code:
import math


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

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

    print(counter)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math
X = float(input())
num = 100.00
count = 0
while num < X:
    num = num + math.floor(num*0.01)
    count = count + 1

print(count)

Submission status: Accepted

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

while const_a < x:
  const_a += const_a//100
  count += 1
print(count)

Submission status: Accepted

Solution code:
import math
#def getTotal(now_depo, now_year, goal):
#  if(now_depo >= goal):
#    return now_year
#  else:
#    return getTotal(math.floor(now_depo * 1.01), now_year + 1, goal)

goal = int(input())
depo = 100
#print(getTotal(depo, 0, goal))
now_year = 0
while (True):
  depo = math.floor(depo * 1.01)
  now_year += 1
  if(depo >= goal):
    print(now_year)
    break

Submission status: Accepted

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

Submission status: Accepted

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

while start < x:
    count += 1
    start = int((start*101)/100)
    
print(count)

Submission status: Accepted

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

while money < x:
    money *= 1.01
    money = money // 1
    count +=1
print(count)

Submission status: Accepted

Solution code:
import math

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

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

print(num)

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

Solution code:
"""
import random
import functools
import copy
import bisect
import array
import re
import collections
import heapq
import fractions
import itertools
import string
import math
from operator import itemgetter as ig
from bisect import bisect_left, bisect_right, insort_left, insort_right
from itertools import permutations, combinations, product, accumulate, groupby
from heapq import heappush, heappop
from collections import deque, defaultdict, Counter
import sys
sys.setrecursionlimit(10 ** 7)
# import numpy as np

inf = 10 ** 20
INF = float("INF")
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = dd + [(-1, 1), (1, 1), (1, -1), (-1, -1)]
ddn9 = ddn + [(0, 0)]
'''for dx, dy in dd:
        nx = j + dx; ny = i + dy
            if 0 <= nx < w and 0 <= ny < h:'''
"""
from collections import defaultdict
import sys
import math
sys.setrecursionlimit(10 ** 7)


def wi(): return list(map(int, sys.stdin.readline().split()))
# WideIntPoint


def wip(): return [int(x) - 1 for x in sys.stdin.readline().split()]


def ws(): return sys.stdin.readline().split()


def si(): return int(sys.stdin.readline())  # SingleInt


def ss(): return input()


def hi(n): return [si() for _ in range(n)]


def hs(n): return [ss() for _ in range(n)]  # HeightString


def s_list(): return list(input())


def mi(n): return [wi() for _ in range(n)]  # MatrixInt


def mip(n): return [wip() for _ in range(n)]


def ms(n): return [ws() for _ in range(n)]


def num_grid(n): return [[int(i) for i in sys.stdin.readline().split()[
    0]] for _ in range(n)]  # NumberGrid


def grid(n): return [s_list() for _ in range(n)]


def gcd(a, b):
    while b:
        a, b = b, a % b
    return a

# a/b の切り上げ


def round_up(a, b):
    """ a/b の切り上げ """
    c = (a + b - 1) / b
    return c


def lcm(a, b):
    """a,bの最小公倍数"""
    return a * b // gcd(a, b)


def main():
    x = int(input())
    a = 100
    for i in range(4000):
        a = a * 1.01
        a = int(a)
        if a >= x:
            print(i+1)
            sys.exit()


if __name__ == '__main__':
    main()

Submission status: Accepted

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

print(Z)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

N = 100
C = 0

while True:
    N = int(N * 1.01)
    C += 1
    if N >= X:
        break

print(C)

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    y = 0
    x = int(input())
    ans = 100

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

print(year)

Submission status: Accepted

Solution code:
#入力
X=int(input())

money=100
cnt=0
while money < X:
	cnt=cnt+1
	money=int(money*1.01)
print(cnt)

Submission status: Accepted

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

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

print(year)

Submission status: Accepted

Solution code:
x = int(input().strip())
a = 100
rishi = 1.01
count = 0
while a < x:
    count += 1
    a = int(a * rishi)
print(count)

Submission status: Accepted

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

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

Solution code:

import sys
import math
import itertools

def solve(X):
    ans = 100
    i = 0
    while ans < X:
        i += 1
        ans = (math.floor(ans * 1.01))
        # print(ans)
    return i




def main():
    X = int(input())
    # solve()
    print(solve(X))
if __name__ == '__main__':
   main()

Submission status: Accepted

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

Submission status: Accepted

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

amount = 100
year = 0
while amount<K:
  amount*=1.01
  amount//=1
  year+=1

print(year)

Submission status: Accepted

Solution code:
import math
x = int(input())
s=[]
a=100
while math.floor(a*1.01)<x:
  a = math.floor(a*1.01)
  s.append(a)

print(len(s)+1)

Submission status: Accepted

Solution code:
import math

X = int(input())
a = 100

for i in range(1,10000):
    a += math.floor(a * 0.01)
    if a >= X:
        ans = i
        break
print(i)

Submission status: Accepted

Solution code:
count = 0
derm = 100
target = int(input())
while(derm < target):
    inter = derm / 100;
    derm += int(inter)
    count +=1
print(count)

Submission status: Accepted

Solution code:
X = int(input())

n = 0
Xn = 100

while Xn < X:
    n = n+1
    Xn = Xn + int(Xn*0.01)

print(n)

Submission status: Accepted

Solution code:
x = int(input())
import math
ans = 0
n = 100
for i in range(1000000):
    n=math.floor(n * 1.01)
    ans += 1
    if x <= n :
        print(ans)
        exit()

Submission status: Accepted

Solution code:
import math

X = int(input())

i = 100
count = 0

while(X > i):
    i = math.floor(i) * 1.01
    count+=1

print(count)

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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


q = 100
i = 0

while q < x:
    q = math.floor (q * 1.01)
    i += 1


print(i)

Submission status: Accepted

Solution code:
x = int(input())

num = 100
count = 0
while x > num:
  num = num + (num // 100)
  count += 1

print(count)

Submission status: Accepted

Solution code:
n = int(input())
res = 100
a = 0

while res < n:
  res = int(res * 1.01)
  a += 1
print(a)

Submission status: Accepted

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

N = 100
n = 1
while N < X :
    N = math.floor(N*1.01)
    if N<X :
        n = n + 1


print(str(n))

Submission status: Accepted

Solution code:
import math

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

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

print(time)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

n = 0
y = 100
while y < X:
    y += int(y * 0.01)
    n += 1

print(n)

Submission status: Accepted

Solution code:
import math
def intpow(X):
    return int(X*1.01)

X = int(input())

ans = math.ceil((math.log(X)-2*math.log(10))/math.log(1.01))

# X0 = 100
Xn = 100
for i in range(ans):
    Xn = int(Xn*1.01)
    # print(Xn)

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

print(ans)

Submission status: Accepted

Solution code:
import math
X = int(input())
year = 0
s = 100
while True:
    s = math.floor(s * (1 + 0.01))
    year += 1
    if s >= X:
        print(year)
        break

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
X=int(input())

num=100
count=0
while num<X:
    num=num+(0.01*num)//1
    count+=1
    
print(count)

Submission status: Accepted

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

p=100
r=0
while p<n:
    p+=int(p*0.01)
    r+=1

print(r)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
m = 100
count = 0
while x > m:
    r = int(m*0.01)
    m = m + r
    count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.buffer.readline
def even(n): return 1 if n%2==0 else 0

n = int(readline())
m = 100
ans = 0

while m < n:
    m += int(m*0.01)
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
import sys
x = int(input())
now = 100
cnt = 1
flag = True
while flag:
    now *= 1.01
    now = int(now)
    if now >= x:
        flag = False
    else:
        cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
n = int(input())
#i,j = [int(e) for e in input().split()]
#print(n,i,j)

r = 1.01
out = 100
y = 0
while out < n:
  out = int(out * r )
  y += 1

print(y)

Submission status: Accepted

Solution code:
X=int(input())


x=100
interest=1.01
for year in range(1,10**18):
  x=int(x*interest)
  if x>=X:
    print(year)
    break

Submission status: Accepted

Solution code:
import math

x = int(input())
temp = 100
cnt = 0

while temp < x:
    temp += math.floor(temp*0.01)
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
import math
money = 100
x = int(input())
#print(x)
cnt = 0
while money < x:
  money += money * 0.01
  money = int(money)
  cnt += 1
  #print(cnt,money)
print(cnt)

Submission status: Accepted

Solution code:
import math

s = input()
i = 100
n = 0
while int(s) > i:
    i += math.floor(i/100)
    n += 1
print(n)

Submission status: Accepted

Solution code:
k = int(input())

_x = 100
count = 0

while(1):
    x = _x + int(_x * 0.01)
    count += 1
    _x = x
    if x >= k:
        break

print(count)

Submission status: Accepted

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

def rishi(y):
    return math.floor(y*1.01)

counter = 0
z = 100

while x > z:
    z = rishi(z)
    counter += 1

print(counter)

Submission status: Accepted

Solution code:
import math
deposit = int(input())
money = 100
year = 0
while money < deposit:
  money = money + math.floor(money * 0.01)
  year += 1
print(year)

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

Solution code:
X = int(input())
year = 1
stock = 100

while True:
    stock = stock + int(stock * 0.01)
    if stock >= X:
        print(year)
        break
    year += 1

Submission status: Accepted

Solution code:
import sys;input=lambda:sys.stdin.readline().rstrip();aint=lambda:int(input());ints=lambda:list(map(int,input().split()))
import math;floor,ceil=lambda x:int(math.floor(x)),lambda x:int(math.ceil(x))

def main():
  x=aint()
  n,i=100,0
  while n<x:
    n=floor(1.01*n)
    i+=1
  print(i)

if __name__ == '__main__':
    main()

Submission status: Accepted

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: Accepted

Solution code:
# coding: utf-8
# Your code here!
import math

target = int(input())
bank = 100
ans = 0

while bank < target:
    bank += math.floor(bank * 0.01)
    ans += 1

print(ans)

Submission status: Accepted

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

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

print(i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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
print(i)

Submission status: Accepted

Solution code:
import math

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

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

if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
X = int(input())
ans = 100
count = 1

while(True):
    a = ans*0.01
    ans = ans + a
    ans = int(ans)
    #print(ans)

    if (X<=ans):
        print(count)
        break

    count += 1

Submission status: Accepted

Solution code:
i = 1
d = 100
n = int(input())

if n == 100:
    print(0)
else:
    while True:
        d = int(d * 1.01)
        if n <= d:
            break
        i = i + 1
    print(i)

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

Solution code:
import math

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

while a < x:
  if int(a*1.01) >= x:
    print(n+1)
    break
  else:
    n += 1
    a = int(a*1.01)

Submission status: Accepted

Solution code:
import math

x = int(input())

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

print(i)

Submission status: Accepted

Solution code:
k = int(input())
import math
ls = [100]
for i in range (4000):
    ls.append(math.floor(ls[i] * 1.01))
    
for j in range(len(ls)):
    if ls[j] >= k:
        break
print(j)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

import math

value = 100.0
r = 1.01
n = 0

while(value < x):
    value = math.floor(r*value)
    #print(value, n)
    n += 1
print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
deposit = 100
rate = 1.01
flag = True
year = 0
while flag:
  deposit = int(deposit * rate)
  year += 1
  if deposit >= X:
    flag = False
print(year)

Submission status: Accepted

Solution code:
import sys;input=lambda:sys.stdin.readline().rstrip();aint=lambda:int(input());ints=lambda:list(map(int,input().split()))
import math;floor,ceil=lambda x:int(math.floor(x)),lambda x:int(math.ceil(x))
from functools import reduce;gcd=lambda*x:reduce(math.gcd,x);lcm=lambda*x:reduce(lambda x,y:(x*y)//gcd(x,y),x,1)
from collections import deque
Yes=lambda b:print("Yes"if b else"No");YES=lambda b:print("YES"if b else"NO")
is_even=lambda x:True if x%2==0 else False

def is_palindrome(s):
  n=len(s);b=True
  for i in range(int(0.5*n)):
    if s[i]!=s[n-i-1]:b=False
  return b

def main():
  x=aint()
  n,i=100,0
  while n<x:
    n=floor(1.01*n)
    i+=1
  print(i)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

while x > count_1:
    count=(math.floor(count_1*0.01))
    count_1+=math.floor(count)
    ans += 1
print(ans)

Submission status: Accepted

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

while X > result:
    count = count +1
    

    result = result + result //100

print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
money = 100
for ind in range(3800):
    if money >= x:
        print(ind)
        break
    money = int(money * 1.01)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())
y=0
z=0

y=int(100+100*0.01)

while True:
  if y>=x:
    break
  z+=1
  y=int(y+y*0.01)

print(z+1)

Submission status: Accepted

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

for i in range(3760):
  y = int(y*1.01)
  a.append(y)

a.append(x)
b = sorted(a)

print(b.index(x)+1)

Submission status: Accepted

Solution code:
import math

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

print(n)

Submission status: Accepted

Solution code:


def inputOneLine():
	global S
	S=input()

def inputMaltiLine1():
	global S,N,lines
	N=int(input())
	for i in range(N):
		lines.append(input())

##main#######################################

X=int(input())

#100
yokin= 100
y=0
while 1:
	y+=1
	yokin = int(yokin * 1.01)
	#print(yokin)
	if(yokin >= X):
		break
print(y)

Submission status: Accepted

Solution code:
import math

X=()
A=100
Years=0


X=int(input(""))

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

print(Years)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=int(input())
a=100
b=0
while a<s:
  a=int(a*(1+0.01))
  b+=1
print(b)

Submission status: Accepted

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

import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        # for line in sys.stdin:
        #     lines.append(line)
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    (x, ) = [int(e) for e in lines[0].split(' ')]

    return (x, )


def solve(x):
    
    # 切り捨てが必要
    m = (math.log10(x) - 2) / math.log10(1.01)
    n = math.ceil(m) 

    tmp = 100
    n = 0 
    for i in range(1, 3761):
        tmp = math.floor(tmp * 1.01)
        if tmp >= x:
            n = i
            break


    return n
    


def main():
    # 出力
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

Submission status: Accepted

Solution code:
bank = 100
r = 0.01

x = int(input())
for i in range(10000000000000000000):
    bank = int(bank * (1 + r))
    # print(bank)
    if bank >= x:
        print(i + 1)
        break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

resolve()

Submission status: Accepted

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

years = 0
while dep<n:
    dep += int(dep/100)
    years += 1

print(years)

Submission status: Accepted

Solution code:
X = int(input())

a = 100
result = 1

while True:
    a = a * 1.01
    a = int(a)
    if a >= X:
        break
    result += 1

print(result)

Submission status: Accepted

Solution code:
import sys
from random import choice,randint
inp=sys.stdin.readline
out=sys.stdout.write
flsh=sys.stdout.flush
 
sys.setrecursionlimit(10**9)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]
 
def MI(): return map(int, inp().strip().split())
def LI(): return list(map(int, inp().strip().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]
def LI_(): return [int(x)-1 for x in inp().strip().split()]
def LF(): return [float(x) for x in inp().strip().split()]
def LS(): return inp().strip().split()
def I(): return int(inp().strip())
def F(): return float(inp().strip())
def S(): return inp().strip()
def pf(s): return out(s+'\n')
def JA(a, sep): return sep.join(map(str, a))
def JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)

def main():
    x = I()
    n = 100
    c=0
    while n<x:
        n *=101
        n //=100
        c+=1
    print(c)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

while n < X:
    n = int(1.01 * n)
    i += 1
print(i-1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

ori = 100
r = 1.01
cnt = 0

while True:
    cnt += 1
    ori = int(ori*r)
    if ori >= x:
        print(cnt)
        break

Submission status: Accepted

Solution code:
str = input()
a = int(str.strip())
x = 100
count = 0
while x < a:
    x = int(x*1.01) 
    count +=1
print(count)

Submission status: Accepted

Solution code:
X = int(input())

yokin = 100
count = 0

while X > yokin:
    risi = int(yokin * 0.01)
    yokin += risi
    count += 1

print(count)

Submission status: Accepted

Solution code:
"""
高橋くんはAtCoder銀行に100円を預けています。
AtCoder銀行では、毎年預金額の1%の利子がつきます(複利、小数点以下切り捨て)。
利子以外の要因で預金額が変化することはないと仮定したとき、高橋くんの預金額が初めてX円以上になるのは何年後でしょうか
"""
max = int(input())
money = 100
cnt = 0
loopf = True
while loopf:
    if money >= max:
        loopf = False
    else:
        up = money // 100
        money += up
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
import math

x = int(input())
p = 100
i = 0
while x > p:
    p = (101 * p)/100
    p = math.floor(p)
    i += 1

print(i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

n = int(input())
money = 100
count = 0
while(n !=  money and money < n):
    count += 1
    money = math.floor(1.01*money)
print(count)

Submission status: Accepted

Solution code:
import math
a = int(input())
money = 100
count = 0

while True:
    count += 1
    money = math.floor(money * 1.01)
    if a <= money:
        break
print(count)

Submission status: Accepted

Solution code:
x = int(input())
rate = 0.01

money = 100
for i in range(1,3761):
    money += int(money*rate)
    if x <= money:
        print(i)
        quit()

Submission status: Accepted

Solution code:
import math
# Xの入力
X = int(input())
crdit = 100
cnt = 0

while crdit < X:
  crdit = math.floor(crdit * 1.01)
  cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
import math

x_goal = int(input())

# print(math.ceil(math.log(x_goal / 100, 1.01)))
result = 0
balance = 100
while balance < x_goal:
    balance = (balance * 1.01) // 1
    result += 1

print(result)