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 math

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

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
def solve(X):
    lis = [0]*4000
    lis[0] = 100
    for i in range(1,4000):
        lis[i] = lis[i-1]+lis[i-1]//100
        if lis[i]>=X:
            return i
print(solve(X))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

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

while True:
    risi = money//100
    money += risi
    year += 1

    if money >= x:
        print(year)
        exit()

Submission status: Accepted

Solution code:
import math
def B():
    X = int(input())
    balance = 100
    count = 0
    while balance < X:
        balance = math.floor(balance*1.01)
        count += 1
    print(count)
    
B()

Submission status: Accepted

Solution code:
X= int(input())

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

Submission status: Accepted

Solution code:
from sys import stdin
import sys
import math

X = int(input())

year = 0
total = 100

while True:
    year += 1
    total += math.floor(total * 1 / 100)
    if total >= X:
        print(year)
        sys.exit()

Submission status: Accepted

Solution code:
import numpy as np
num_val = int(input())
start_val = 100

cnt = 0
while start_val < num_val:
    cnt += 1
    start_val = np.floor(start_val*(1.01))
print(cnt)

Submission status: Accepted

Solution code:
A = 100
X = int(input())
for i in range(10**18):
    A = A*1.01//1
    if A >= X:
        print(i+1)
        break

Submission status: Accepted

Solution code:
from math import floor


def main():
    X = int(input())
    m = 100
    i = 1
    while True:
        m = floor(m * 1.01)
        if X <= m:
            print(i)
            exit()
        i = i+1


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
target = int(input())

tmp = 100

i = 0
while target > tmp:
    tmp = int(tmp*1.01)
    i += 1

print(i)

Submission status: Accepted

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

while X > money:
  money += math.floor(money*0.01)
  y += 1
print(y)

Submission status: Accepted

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



import math

x = input()
x  = int(x)

now = 100
count = 0

while x>now:
    now = math.floor(now*1.01)
    count += 1
    
print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(y)

Submission status: Accepted

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

while y<x:
    y = (y*1.01)//1
    z += 1

print(z)

Submission status: Accepted

Solution code:
import sys
X = int(input())
# X =10 ** 18
x = 100
c = 0
interest = 1.01
while True:
    c += 1
    x = int(x * 1.01)  
    if x >= X:
        print(c)
        sys.exit()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
'''input
1333333333
'''

x = int(input())
count =0
p = 100
ans = -1
while True:
	count += 1
	a = (p*101)//100
	if(a>=x):
		ans = count
		break;
	p = a
print(count)

Submission status: Accepted

Solution code:
x = int(input())

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

print(ans)

Submission status: Accepted

Solution code:
import math

X = int(input())

money = 100
count = 0

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

print(count)

Submission status: Accepted

Solution code:
N= int(input())
ans = 0
base = 100

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

print(ans)

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

Solution code:
x = int(input())
money = 100
for i in range(1000000000):
  money = int(money*1.01)
  if money>=x:
    print(i+1)
    break

Submission status: Accepted

Solution code:
import math
x = int(input())
ans = 100
i = 1

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

Submission status: Accepted

Solution code:
import itertools
import math
import string
import collections
from collections import Counter
from collections import deque
import sys
sys.setrecursionlimit(2*10**5)
INF = 2**60


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


def nCr(n, r):
    return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor


# coordinates
dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]
x = int(input())
a = 100
cnt = 0
for _ in range(4000):
    cnt += 1
    a = math.floor(a*1.01)
    if a >= x:
        print(cnt)
        exit()

Submission status: Accepted

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

def main():
    x = int(input())
    ans = 0
    interest = 100
    while True:
        interest = int(interest * 0.01 + interest)
        ans += 1
        if interest >= x:
            print(ans)
            exit()
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import os

import sys

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
# MOD = 998244353

X = int(sys.stdin.buffer.readline())
x = 100
cnt = 0
while True:
    x *= 1.01
    x = int(x)
    cnt += 1
    if x >= X:
        print(cnt)
        exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

cnt = 0
y = 100

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

Submission status: Accepted

Solution code:
import math

targetValue=int(input())

currentValue=100
cnt=0
while targetValue > currentValue:
    currentValue += int(currentValue/100)
    cnt+=1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

N = int(input())

year = 0
thre = 100
while(N > thre):
  thre *= 1.01
  thre = math.floor(thre)
  year += 1

#year = math.log(N/100)/math.log(1.01)
print(year)

Submission status: Accepted

Solution code:
x = int(input())

cnt = 0
yokin=100

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
from collections import deque, defaultdict
import bisect
from math import factorial, sqrt, log, ceil, floor

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

    current = 100
    year = 0
    while current < X:
        current += floor(current * 0.01)
        year += 1
    print(year)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())

cnt = 0
k = 100
while True:
    k = int(k * 1.01)
    cnt += 1
    if x <= k:
        break

print(cnt)

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
#! /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
import math


def add(i):
    return math.floor(i * 1.01)


x = int(input())
s = 100
ans = 0
while True:
    s = add(s)
    ans += 1
    if (s >= x):
        print(ans)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

now = 100
n = 0

while now < X:
    n += 1
    now = now * 101 // 100
print(n)

Submission status: Accepted

Solution code:
x = int(input())

t = 100
count = 0
while(not t >= x):
  t = t + int(t * 0.01)
  count += 1
  
print(count)

Submission status: Accepted

Solution code:
X = int(input())

yokin=100
i=1
while True:
        yokin = yokin + int(yokin*0.01) 
        if yokin>=X:
            break
        i+=1
print(i)

Submission status: Accepted

Solution code:
import math
import sys
#x
x=int(input())
ans=100
cnt=0

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

print(cnt)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# sys.stdin.readline()
import sys
input = sys.stdin.readline
import math
N = int(input())
x = 100
for i in range(N):
    x +=x//100
    if N <= x:
        
        print(i+1)
        sys.exit()

Submission status: Accepted

Solution code:
import math

k = int(input())

n = 0
m = 100

while m < k:
    m = m + math.floor(m*0.01)
    n += 1

print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

print(res)

Submission status: Accepted

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

Submission status: Accepted

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

_sum = 100
year = 0

while True:
    if _sum >= X :
        break
    _sum = math.floor(_sum * 1.01)
    year += 1

print(int(year))

Submission status: Accepted

Solution code:
x = int(input())
import sys
MAX = 10 ** 18
s = 100
for i in range(1, MAX):
  s = int(s * (1.01))
  if s >= x:
    print(i)
    sys.exit()

Submission status: Accepted

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

count = 0
while(dis < x):
    dis += int(0.01 * dis)
    count += 1
    #print(dis)
print(count)

Submission status: Accepted

Solution code:
X = int(input())

now = 100

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
import math
x=int(input())
q=100
i=0
while(q<x):
    q=math.floor(q*1.01)
    i=i+1
print(i)

Submission status: Accepted

Solution code:
import math
s = input().split()
x=int(s[0])
a=100
ans=0
while a<x:
    a=math.floor(1.01*a)
    ans+=1
print(ans)

Submission status: Accepted

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

print(y)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import os

def file_input():
    f = open('../Beginner_Contest_165/input.txt', 'r')
    sys.stdin = f

def main():
    #file_input()
    X=int(input())
    # map(int, input().split())

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

print(c)

Submission status: Accepted

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

print(y)

Submission status: Accepted

Solution code:
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    X = int(input())

    ans, n = 1, 100
    while 1:
        n = int(n * 1.01)
        if n >= X:
            break
        ans += 1
    print(ans)


main()

Submission status: Accepted

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

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

print(y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

yokin = 100
i = 0
while yokin < x:
    yokin = int(yokin * 1.01)
    i += 1

print(i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
x = int(input())
n = 100
ans = 1

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

print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from sys import stdin, stdout


def read():
    x0 = stdin.readline().rstrip()
    return x0


def __main__():
    n = int(read())
    x = 100
    res = 0

    while x < n:
        x += x // 100
        res += 1

    r = str(res) + '\n'
    stdout.write(r)

    #res = str(m) + '\n'


    #res = str(max(m1, m2)) + '\n'
    #stdout.write(res)

__main__()

#a = [int(i) for i in read().split()]

Submission status: Accepted

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

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):
  cnt+=1
  m = int(m*1.01)
  
print(cnt)

Submission status: Accepted

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

while yokin < X:
  yokin = (yokin * 1.01) // 1
  cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
k=int(input())
c=100
d=100
for i,x in enumerate( range(5999999)):
    d=int(d*1.01)
    if d>=k:print(i+1);exit()

Submission status: Accepted

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

for y in itertools.count(1):
    x = x * 1.01
    x = math.floor(x)
    if target <= x:
        print(y)
        break

Submission status: Accepted

Solution code:
X = int(input())
x = 100
r = 1.01
for i in range(10000000):
    x = int(x*1.01)
    if x>=X:
        print(i+1)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())
flag="False"
n=0
y=100
while flag=="False":
  n+=1
  y=int(y*1.01)
  if y>=x:
    flag="True"
print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
X = int(input())
p = 100
i = 0
for i in range(10000000):
    i+=1
    p = math.floor(p*1.01)
    if X <= p:
        print(i)
        break

Submission status: Accepted

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

N=100
i=1
while N<K:
    N=N+math.floor(N*0.01)
    if N>=K:
        print(i)
        break
    else:
        i+=1

Submission status: Accepted

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

m=100
ans=0
for i in range(4000):
    
    m=int(m*1.01)
    ans+=1
    if m>=X:
        break

print(ans)

Submission status: Accepted

Solution code:
import math
x = float(raw_input())

def f(x):
	#return int(math.log(x/100, 1.01))
	c = 0
	q = 100
	while(q < x):
		q *= 1.01
		q = int(q)
		c+= 1
	return c
print f(x)

Submission status: Accepted

Solution code:
x = int(input())

s = 100
y = 0
while s < x:
    s = s + s // 100
    y = y + 1

print(y)

Submission status: Accepted

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

while True:
  m = int(m * 1.01)
  cnt += 1
  if m >= X:
    break

print(cnt)

Submission status: Accepted

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

print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import queue
import copy
import math
from collections import deque
import bisect
from decimal import Decimal

# そのまま入力文字列の入力
x = Decimal(input())

ans = 0
m = 100
while True:
    m = math.floor(m * 1.01)
    ans += 1
    if x <= m:
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
X =int(input())
Yokin = 100
i = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

x_target = int(input())

x = 100
n = 0

while x < x_target:
  x = math.floor(x * 1.01)
  n += 1

print(n)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

Solution code:
import math
x=int(input())
ans=0
temp=100
for i in range(1,10000):
    if int(temp*1.01) >= x:
        ans=i
        break
    else:
        temp=math.floor(temp*1.01)
print(ans)

Submission status: Accepted

Solution code:
import math
X=int(input())
ans=100
count=0
for i in range(10**25):
  if ans>=X:
    break
  ans+=math.floor(ans*0.01)
  count+=1
print(count)

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
X = int(input())

a = 100
b = 0
while a < X:
    a = a*1.01//1
    b += 1
else:
    print(b)

Submission status: Accepted

Solution code:
#import numpy as np
#import math
#from fractions import gcd

def main():

    ##get int
    first_input = list(map(lambda x:int(x), input().split(" ")))
    #second_input = list(map(lambda x:int(x), input().split(" ")))

    ##get float
    #first_input = list(map(lambda x:float(x), input().split(" ")))
    #second_input = list(map(lambda x:float(x), input().split(" ")))

    ##get string
    #first_input = input().split(" ")

    X = first_input[0]

    cash = 100
    count_year = 0
    while True:
        count_year = count_year+1
        cash = int(cash*1.01)
        if cash>=X:
            print(count_year)
            return

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
X= int(input())
val = 100
for n in range(100000000):    
    val = int(val*1.01)
    if val >= X:
        print(n + 1)
        break

Submission status: Accepted

Solution code:
import math

x = int(input())

n = 100
for y in range(1, 999999999):
    n *=1.01
    n = math.floor(n)
    if n >= x:
        print(y)
        break

Submission status: Accepted

Solution code:
X=int(input())

count=0

money=100

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

Solution code:
def input_int_list():
    return [int(thing) for thing in input().split(" ")]

def int_input():
    return int(input())


def print_ans(string):
    print(string)
    exit()

def yes():
    print("Yes")
    exit()

def no():
    print("No")
    exit()


if __name__ == '__main__':
    X=int_input()
    yokin=100
    for i in range(5000):
        yokin=yokin*1.01//1
        if yokin>=X:
            print_ans(i+1)

Submission status: Accepted

Solution code:
import math

X = int(input())

n = 0
Y = 100
while True:
    n+=1
    Y = int(Y * 1.01)
    if Y >= X:
        break

print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import sys
readline = sys.stdin.readline
read = sys.stdin.read

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

while True:
    i += 1
    fn = math.floor(fn*1.01)
    if fn>=x:
        print(i)
        break

Submission status: Accepted

Solution code:
X=int(input())
y=100+int(100*0.01)
c=1
while True:
    y=y+int(y*0.01)
    c+=1
    if X<=y:
        break
print(c)

Submission status: Accepted

Solution code:
x = int(input())

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

print(count)

Submission status: Accepted

Solution code:
x = int(input())

a = 100
b = 1

ans = 0
while True:
    ans += 1
    a += b
    if x <= a:
        break
    b = a // 100

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math

X=int(input())

A=100
n=0
while X>A:
    A *= 1.01
    
    A=int(A)
    #print(A)
    n+=1
#N=int(math.log(X/100, 1.01))+1

print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

import sys
import pprint

sys.setrecursionlimit(10 ** 6)

class Logger:
	def __init__(self, debug):
		self.debug = debug
	def print(self, *args):
		if self.debug:
			pprint.pprint(args)


def main():
	log = Logger(1)
	n = int(sys.stdin.readline())
	x = 100
	# n = 1.1x
	cnt = 0
	while x < n:
		x = int(x * 1.01)
		cnt += 1
	print(cnt)

main()

Submission status: Accepted

Solution code:
import math

def main():
    x = int(input())
    m = 100
    n = 0
    while True:
        if m >= x:
            break
        m += int(m * 0.01)
        n += 1
    print(n)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
X=int(input())

cnt=0
money=100
for i in range(1,3761):
    cnt+=1
    money=int(money*1.01)
    if money>=X:
        print(i)
        exit()

Submission status: Accepted

Solution code:
import math

X = int(input())

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

Submission status: Accepted

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

while True:

    a=a+int(a*0.01)

    if a>=x:

        print(s)
        break

    s+=1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
X = int(input())
i = 1
m = 100
while True:
    m = int(1.01 * m)
    if m >= X:
        ret = i
        break
    i += 1
print(ret)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# B - 1%
x = (int)(input())

i = 100
y = 0

while( i < x ):
    i = (int)(i / 100) + i
    y += 1

print(y)

Submission status: Accepted

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

ans = 100
count = 0

while ans <= X:
    if ans == X:
        print(count)
        sys.exit()
    count = count + 1
    ans = ans + math.floor(ans*0.01)
    
    

print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(cnt)

Submission status: Accepted

Solution code:
x = int(input())

year = 0
yen = 100
while 1:
    year += 1
    yen *= 1.01
    yen = int(yen)
    if yen >= x :
        break
print(year)

Submission status: Accepted

Solution code:
import math
x=int(input())
a=100
count=0
while True:
  if a>=x:break
  a=math.floor(a+a*0.01)
  count+=1

print(count)

Submission status: Accepted

Solution code:
#input()
X=int(input())
#A,B=map(int,input().split())
#list(map(int,input().split()))
#[input() for i in range(N)]

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

Submission status: Accepted

Solution code:
import math

a=int(input())
t=100
for i in range(10000):
    t=math.floor(t*1.01)
    if t >=a:
        print (i+1)
        break

Submission status: Accepted

Solution code:
import math

X = int(input())

att = 100
for count in range(1,1000000000000000020):
    att = math.floor(att * 1.01)
    if att >= X:
        print(count)
        break

Submission status: Accepted

Solution code:
X = int(input())

c = 100
for i in range(1, 10**18):
    c = int(c * 1.01)
    if X <= c:
        print(i)
        break

Submission status: Accepted

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

cash = 100
year = 0

while cash < x :
    year += 1
    cash = cash + math.floor(cash*0.01)

print(year)

Submission status: Accepted

Solution code:
x = int(input())

count = 0

num = 100

for _ in range(10**9):
  num += int(num * 0.01)
  count += 1

  if num >= x:
    break

print(count)