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:


def over(X, start=100):
    i = 0
    current = start
    while True:
        i += 1
        current += current // 100
        if current > X:
            return i

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

    result = over(X, 100)

    print(result)
   


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a = int(input())
b = 0
e = 1
for i in range(10000):
    S = int(100*(1+0.01)**e)
    if a <= S:
        print(e)
        break
    else:
        e += 1

Submission status: Wrong Answer

Solution code:


def over(X, start=100):
    i = 0
    current = start
    while True:
        i += 1
        current += int(current * 0.01)
        if current > X:
            return i

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

    result = over(X, 100)

    print(result)
   


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
print(math.ceil(math.log(x/100, 1.01)))

Submission status: Wrong Answer

Solution code:
mon = 100
nen = 0
moku = int(input())

while mon < moku:
    mon = (mon * 101) / 100
    nen += 1

print(nen)

Submission status: Wrong Answer

Solution code:
n=int(input())
now=1
p=100
for i in range(1,1000000):
	p=p*(101)
	p=p/100
	if(p>=n):
		print(i)
		break

Submission status: Wrong Answer

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

print( count)

Submission status: Wrong Answer

Solution code:
n=int(input())
s=(n/100)
count=0
while s>1.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 :
    s=(s//1.01)
    count+=1
print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())

s = 100
count = 0

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

print(count)

Submission status: Wrong Answer

Solution code:
import math

K = int(input())

n_pre = math.log(K/100, 1.01)

print(math.ceil(n_pre))

Submission status: Wrong Answer

Solution code:
X = int(input())

a = 100
r = 0.01
n = 0
while True:
    b = a*((1.01)**n)
    bint = int(b)
    if bint  >= X:
        break    
    n+=1
print(n)

Submission status: Wrong Answer

Solution code:
num = int(input())
year = 0
cash = 100
while(True):
  cash += int(cash/100)
  year+=1
  if(num < cash):
    print(year)
    break

Submission status: Wrong Answer

Solution code:
x = int(input())

wk =100
i=0
while x >wk:
    wk += wk*0.01
    i+=1
print(i)

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

Solution code:
from math import *
a = int(input())
t = (log10(0.01*a))/(log10(1.01))
print(round(t))

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
 
def f(a):
  return math.log(a)-math.log(100.01)
 
print(math.ceil(f(X)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print( count)

Submission status: Wrong Answer

Solution code:
import math
x  = int(input())
y=math.floor(100)
d=int(y)
print(d)

year=0
while y<x:
    y*=1.01
    d=int(y)
    y=d
    year+=1
    #print(y,year)
print(year)

Submission status: Wrong Answer

Solution code:
n=int(input())
s=(n/100)
count=0
while s>1.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 :
    s=(s/1.01)
    count+=1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

x = int(input())
y = 1
p = 100*(1.01)**y

while p < x:
    p = 100*(1.01)**y
    y += 1

print(y-1)

Submission status: Wrong Answer

Solution code:
import math

a = int(input())

print(round(math.log(a/100,1.01)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

count = 100 * 0.01
# a,b=map(int,input().split())
sum = 100
i = 0


while	sum <= N:
	sum += count
	i += 1


print(i-1)

Submission status: Wrong Answer

Solution code:
import math
 
n = int(input())
ans = math.ceil(math.log(n/100)/math.log(101/100))
if n>1000000:
  print(ans+57)
else:
  print(ans)
 
'''
cnt = 0
x = 100
while x<n:
  x = round(x+(x*0.01))
  cnt += 1
print(cnt)
'''

Submission status: Wrong Answer

Solution code:
import math
 
n = int(input())
ans = math.ceil(math.log(n/100)/math.log(101/100))
if n>100000:
  print(ans+57)
else:
  print(ans)
 
'''
cnt = 0
x = 100
while x<n:
  x = round(x+(x*0.01))
  cnt += 1
print(cnt)
'''

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
 
n = int(input())
ans = math.ceil(math.log(n/100)/math.log(101/100))
if n>10000:
  print(ans+57)
else:
  print(ans)
 
'''
cnt = 0
x = 100
while x<n:
  x = round(x+(x*0.01))
  cnt += 1
print(cnt)
'''

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

def main():
    X = input()
    X = int(X)
    output = 100
    year = 0
    while output <= X:
        output = int(output * 1.01)
        math.floor(output)
        year += 1

    print(year)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:


x_deposit = int(input())

deposit = 100

interest = 1.01

past_deposit = []

while x_deposit > deposit:
    deposit = deposit * interest
    past_deposit.append(deposit)



years = len(past_deposit)

print(years)

Submission status: Wrong Answer

Solution code:
# cook your dish here
import math
x = int(input())
p = 100
c = x/p
t = (math.ceil(math.log(c,1.01)))
if(x<200):
    print(0)
else:
    print(t+57)

Submission status: Wrong Answer

Solution code:
import math
X= int(float(input()))
Xr = 100
r = 0
n =0
if 101 <= X <= 10**18:
  while X >= (math.floor(Xr)): 
    r = Xr /100
    Xr = math.floor(Xr) + math.floor(r)
    n += 1
  print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
Money = 100

cnt = 0
while (Money <= X):
    if (X <= 103):
        Money = Money + Money * 0.01
        cnt = cnt + 1

    else:
        Money = Money + math.floor(Money * 0.01)
        cnt = cnt + 1

print(cnt)

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
p = 100
c = x/p
t = (math.ceil(math.log(c,1.01)))
if(x<200):
    print(x-100)
else:
    print(t+57)

Submission status: Wrong Answer

Solution code:
ini = 100
end_val = int(input())
cal=ini
year=0
while end_val > cal:
    cal= int(cal*1.01**year)
    year +=1
    

print(year)

Submission status: Wrong Answer

Solution code:
X = int(input())

money = 100
year = 0

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

else:
	print(year)

Submission status: Wrong Answer

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

print(math.ceil((math.log10(X)-2)/math.log10(1.01)))

Submission status: Wrong Answer

Solution code:
X = int(input())

for i in range(3760):
  if X <= 100*(1.01**i):
    print(i)
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
X=int(input())
N=int((math.log(X)-math.log(100))/math.log(1.01))+1
print(N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
X= int(float(input()))
Xr = 100
r = 0
n =0
if 101 <= X <= 10**18:
  while X >= (math.floor(Xr)): 
    r = Xr /100
    Xr = Xr + math.floor(r)
    n += 1
  print(n)

Submission status: Wrong Answer

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

while i <= x:
    i *= 1.01
    int(i)
    z +=1
    
    if i == x:
        break
        
print(z)

Submission status: Wrong Answer

Solution code:
a = int(input())
p = 100
r = 1
n = 12
from math import log, ceil
num = log(a/p)
den = n*log(1+0.01/n)
t = num/den
print(ceil(t))

Submission status: Wrong Answer

Solution code:
from math import log,floor
n=int(input())
r=1
i=1
num=log(n/100)
den=log(1.01)
ans=num/den
print(int(ans+58))

Submission status: Wrong Answer

Solution code:
a = int(input())
p = 100
r = 1
n = 12
from math import log, ceil
num = log(a/p)
den = n*log(1+0.01/n)
t = num/den
print(t)
print(ceil(t))

Submission status: Wrong Answer

Solution code:
import math
X=int(input())
N=int((math.log(X)-math.log(100))/100)+1
print(N)

Submission status: Wrong Answer

Solution code:
import math

X=int(input())

money = 100
ans = 0

while money <= X:
    money += math.floor(money * 0.01)
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import math
X= int(input())
Xr = 100
r = 0
n =0
if 101 <= X <= 10**18:
  while X >= (math.floor(Xr)): 
    r = Xr /100
    Xr = Xr + math.floor(r)
    n += 1
  print(n)

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
ans = math.ceil(math.log(n/100)/math.log(101/100))
if ans>=57:
  print(ans+57)
else:
  print(ans)

'''
cnt = 0
x = 100
while x<n:
  x = round(x+(x*0.01))
  cnt += 1
print(cnt)
'''

Submission status: Wrong Answer

Solution code:
from math import log
X = int(input())
t = round(log(X / 100) / log(1.01))
print(t)

Submission status: Wrong Answer

Solution code:
from math import log,floor
n=int(input())
r=1
i=1
num=log(n/100)
den=log(1.01)
ans=num/den
print(int(ans)+58)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
ans = math.ceil(math.log(n/100)/math.log(101/100))
if ans>57:
  print(ans+57)
else:
  print(ans)

'''
cnt = 0
x = 100
while x<n:
  x = round(x+(x*0.01))
  cnt += 1
print(cnt)
'''

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
default = 100
year = 1
while True:
    default = default + math.floor(default * (1 / default))
    print(default)
    if default == X:
        print(year)
        break
    year += 1

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
ans = math.ceil(math.log(n/100)/math.log(101/100))
if len(str(ans))>1:
  print(ans+57)
else:
  print(ans)

Submission status: Wrong Answer

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

n = math.log(X/100, 1.01)
n1 = math.ceil(n)

print(n)

Submission status: Wrong Answer

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

print(c)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

a = math.log(X/100.0,1.01)

print(math.ceil(a))

Submission status: Wrong Answer

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

n = math.log(X/100, 1.01)
n1 = math.ceil(n)

print(n1)

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
ans = math.ceil(math.log(n/100)/math.log(101/100))
if len(str(ans))>2:
  print(ans+57)
else:
  print(ans)

Submission status: Wrong Answer

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


while money < X :
    cnt = cnt + 1
    money = round(money * 1.01, 0)
print(cnt)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
x = float(input())

deposit = 100

counter = 0
print(x)

for i in range(int(10e18)):
    deposit += deposit*0.01
    counter = counter +1
    if deposit >= x:
        break

print(counter)

Submission status: Wrong Answer

Solution code:
X=int(input())
i=0
Y=100
while True:
    Z=Y+1
    if Z>=X:
        print(i)
        break
    else:
        i=i+1
        Y=Z

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
n = 100
ans = 1
for i in range(10000000):
    if n >= X:
        print(ans)
        break
    else:
        n = math.ceil(n*1.01)
        ans += 1

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
ans = math.ceil(math.log(n/100)/math.log(101/100))
if len(str(ans))>4:
  print(ans+57)
else:
  print(ans)

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
ans = math.ceil(math.log(n/100)/math.log(101/100))
if len(str(ans))>3:
  print(ans+57)
else:
  print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())
 
sum=0
y=100
for i in range(15000):
  y=int(y*1.01)
  if y<=x:
    sum+=1
  else:
    sum=sum
print(sum+1)

Submission status: Wrong Answer

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

for i in range(1,3760):
  s=math.floor(s*0.01+s)
  if s==n:
    print(i)
    exit

Submission status: Wrong Answer

Solution code:
x=int(input())

sum=0
y=100
for i in range(10000):
  y=int(y*1.01)
  if y<=x:
    sum+=1
  else:
    sum=sum
print(sum+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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



print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
def f(n):
    a=0
    b=100
    while True:
        a+=1
        b=100*(100+a)/100
        if b>=n:
            break
    return a
  
print(f(n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

def rishi(yen):
	return int(yen * 1.01)

while 1:
	i += 1
	yen = rishi(yen)
	if X < yen:
		break

print(i)

Submission status: Wrong Answer

Solution code:
def func(a, r, n):
    x = (a * (1 - r ** n))/(1 - r)
    return int(x)

if __name__ == '__main__':
    x = int(input())
    i = 0
    while True:
        if func(100, 1.01, i) >= x:
            break
        i += 1
    print(i+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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



print(ans)

Submission status: Wrong Answer

Solution code:
x=int(input())
count=0
yokin=100
flag=True
while flag:
    if yokin>=x:
        flag=False
    else:
        yokin=yokin+yokin*0.01
        count+=1

print(count)

Submission status: Wrong Answer

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

print(math.ceil(math.log(X/100, 10)/math.log(1.01, 10)))

Submission status: Wrong Answer

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

def rishi(yen):
	return int(yen * 1.01)

while 1:
	yen = rishi(yen)
	i += 1
	if X < yen:
		break

print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

x=int(input())

for i in range(x):
    if(math.floor(100*(1+0.01)**i)>=x):
        print(i)
        break

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
import numpy as np
x = int(input())
o = 100
y = 0
i = 100
while i <= x:
    y += 1
    print(y)
    i = np.array(o * 1.01 ** y).astype(float)
    i = np.floor(i)
    if i >=x:
        break
print(y)

Submission status: Wrong Answer

Solution code:
N = int(input())
r = 100
for i in range(1,3761):
    r += round((r * 0.01),0)
    if r >= N:
        break
print(i)

Submission status: Wrong Answer

Solution code:

# Author : devil9614 - Sujan Mukherjee

from __future__ import division, print_function

import os,sys
import math
import collections
from io import BytesIO, IOBase

if sys.version_info[0] < 3:
    from __builtin__ import xrange as range
    from future_builtins import ascii, filter, hex, map, oct, zip


def ii(): return int(input())
def si(): return input()
def mi(): return map(int,input().strip().split(" "))
def msi(): return map(str,input().strip().split(" "))
def li(): return list(mi())

def dmain():
    sys.setrecursionlimit(100000000)
    threading.stack_size(40960000)
    thread = threading.Thread(target=main)
    thread.start()
    
#from collections import deque, Counter, OrderedDict,defaultdict
#from heapq import nsmallest, nlargest, heapify,heappop ,heappush, heapreplace
#from math import log,sqrt,factorial
#from bisect import bisect,bisect_left,bisect_right,insort,insort_left,insort_right
#from decimal import *,threading
#from itertools import permutations
#Copy 2D list  m = [x[:] for x in mark] .. Avoid Using Deepcopy

abc='abcdefghijklmnopqrstuvwxyz'
abd={'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7, 'i': 8, 'j': 9, 'k': 10, 'l': 11, 'm': 12, 'n': 13, 'o': 14, 'p': 15, 'q': 16, 'r': 17, 's': 18, 't': 19, 'u': 20, 'v': 21, 'w': 22, 'x': 23, 'y': 24, 'z': 25}
mod=1000000007
#mod=998244353
inf = float("inf")
vow=['a','e','i','o','u']
dx,dy=[-1,1,0,0],[0,0,1,-1]
def getKey(item): return item[1] 
def sort2(l):return sorted(l, key=getKey,reverse=True)
def d2(n,m,num):return [[num for x in range(m)] for y in range(n)]
def isPowerOfTwo (x): return (x and (not(x & (x - 1))) )
def decimalToBinary(n): return bin(n).replace("0b","")
def ntl(n):return [int(i) for i in str(n)]
def ncr(n,r): return factorial(n)//(factorial(r)*factorial(n-r))

def ceil(x,y):
    if x%y==0:
        return x//y
    else:
        return x//y+1

def powerMod(x,y,p):
    res = 1
    x %= p
    while y > 0:
        if y&1:
            res = (res*x)%p
        y = y>>1
        x = (x*x)%p
    return res

def gcd(x, y):
    while y:
        x, y = y, x % y
    return x
    
def isPrime(n) : # Check Prime Number or not 
    if (n <= 1) : return False
    if (n <= 3) : return True
    if (n % 2 == 0 or n % 3 == 0) : return False
    i = 5
    while(i * i <= n) : 
        if (n % i == 0 or n % (i + 2) == 0) : 
            return False
        i = i + 6
    return True



def read():
    sys.stdin = open('input.txt', 'r')  
    sys.stdout = open('output.txt', 'w') 

def padded_bin_with_complement(x):
    if x < 0:
        return bin((2**16) - abs(x))[2:].zfill(16)
    else:
        return bin(x)[2:].zfill(16)
def binaryToDecimal(binary): 
      
    binary1 = binary 
    decimal, i, n = 0, 0, 0
    while(binary != 0): 
        dec = binary % 10
        decimal = decimal + dec * pow(2, i) 
        binary = binary//10
        i += 1
    print(decimal) 
def CountFrequency(arr): 
    return collections.Counter(arr)

def main():
    k = ii()
    g = 100
    j = 0
    while(g < k):
        g = int(g*(1.01))
        j+=1
    print(100*(1.01)**3760)
    print(j)












    












    
    
       



    






# region fastio
# template taken from https://github.com/cheran-senthil/PyRival/blob/master/templates/template.py

BUFSIZE = 8192


class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")


def print(*args, **kwargs):
    """Prints the values to a stream, or to sys.stdout by default."""
    sep, file = kwargs.pop("sep", " "), kwargs.pop("file", sys.stdout)
    at_start = True
    for x in args:
        if not at_start:
            file.write(sep)
        file.write(str(x))
        at_start = False
    file.write(kwargs.pop("end", "\n"))
    if kwargs.pop("flush", False):
        file.flush()


if sys.version_info[0] < 3:
    sys.stdin, sys.stdout = FastIO(sys.stdin), FastIO(sys.stdout)
else:
    sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)

input = lambda: sys.stdin.readline().rstrip("\r\n")

# endregion


if __name__ == "__main__":
    #read()
    main()
    #dmain()

# Comment Read()

Submission status: Wrong Answer

Solution code:
import math

target = int(input()) # 目標金額
have = 100 # 手持ちの金額（100円スタート）
years = 0 # 何年かかるか

while have <= target:
    #print(have, years)
    have = math.floor(have * 1.01)
    years += 1

print(years)

Submission status: Wrong Answer

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

year = 1
while True:
    default = default + 1
    if default == X:
        print(year)
        break
    year += 1

Submission status: Wrong Answer

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

print(math.floor((math.log(X, 10)-2)/math.log(1.01, 10)))

Submission status: Wrong Answer

Solution code:
import sys
import math

b = int(input())

nen = math.ceil(math.log(b/100)/math.log(1.01))

while 1:
    if b/100 <= 1.01**nen:
        print(nen)
        sys.exit()
    print(nen)
    nen += 1

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

ans = math.ceil(math.log(X/100,1.01))

print(ans)

Submission status: Wrong Answer

Solution code:
def func(a, r, n):
    x = (a * (1 - r ** n))/(1 - r)
    return x

if __name__ == '__main__':
    x = int(input())
    i = 0
    while True:
        if func(100, 1.01, i) >= x:
            break
        i += 1
    print(i+1)

Submission status: Wrong Answer

Solution code:
import math

A = int(input())
B = A/100
n= math.log(B, 1.01)
N=math.ceil(n)
print(N)

Submission status: Wrong Answer

Solution code:
from math import log
x = int(input())
y = round((log(x/100))/(log(1.01)))
print(y)

Submission status: Wrong Answer

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

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(math.ceil((math.log(X+1, 10)-2)/math.log(1.01, 10)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
print(math.ceil(math.log(x/100,1.01)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

def main():
    x = int(input())
    i = 100
    n = 1
    cnt = 0
    
    while True:
        n += 0.01
        cnt += 1
        print(i*n)
        if(i*n>x-1):
            print(cnt)            
            break
            sys.exit()

    
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

print(1+math.floor((math.log(X+1, 10)-2)/math.log(1.01, 10)))

Submission status: Wrong Answer

Solution code:
a =int(input())
b = 100
count = 0
while True:
  b = int(b + (b* 0.01))
  count += 1
  if b <= a:
    break

print(count)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
i,n = 100,0
while i < x:
    n += 1
    i = ((101)**n) / 100**(n-1)
print(n)

Submission status: Wrong Answer

Solution code:
import math

A = int(input())
n= math.log(A/100, 1.01)
N=math.ceil(n)
print(N)

Submission status: Wrong Answer

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

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

print(result)

Submission status: Wrong Answer

Solution code:
K = int(input())
i = 0
ans = 0
while True:
  i = i + 1
	
  ans = 100 * (1+0.01) ** i
  
  if (K <= ans):
    print(i)
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
y=0
x=float(input())
i=100.0
while i<=x:
    i=i+(i*(1/100))
    y=y+1

print(y)

Submission status: Wrong Answer

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

for i in range(X-100):
  B = X / 1.01
  D = X - B
  X = X - D
  c = c + 1
  if X <= 100:
    break
    
print(c)

Submission status: Wrong Answer

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

num =  1
s = 100
while True :
    s += math.floor(1.01 ** num)
    if  s >= x:
        break
    else:
        num += 1

print(num)

Submission status: Wrong Answer

Solution code:
import math

A = int(input())
n= math.log(A/100, 1.01)
print(n)

Submission status: Wrong Answer

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

print(count);

Submission status: Wrong Answer

Solution code:
X = int(input())
for a in range(100000):
    if 100 * (1.01 ** a) >= X:
        print(a)
        break

Submission status: Wrong Answer

Solution code:
from decimal import *
x=int(input())
c=0
m=100
while m<x:
  m=Decimal(str(m))*Decimal('1.01')
  c+=1
  
print(c)

Submission status: Wrong Answer

Solution code:
import math
n=int(input())
for i in range(1,n+1):
    if float(100*((1.01)**i))>=n:
        if i>1000:
            i+=57
            print(i)
            break

Submission status: Wrong Answer

Solution code:
import math

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

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

print(num)

Submission status: Wrong Answer

Solution code:
X = int(input())

b = 100
c = 0

while b < X:
    b = b*1.01
    c += 1

print(c)

Submission status: Wrong Answer

Solution code:
n=int(input())
def f(n):
    a=0
    while True:
        a+=1
        b=100+100*(a*(10**-2))
        if b>=n:
            break
    return a
  
print(f(n))

Submission status: Wrong Answer

Solution code:
import math
X=float(input())
i=0
y= float(100)

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

print(i)

Submission status: Wrong Answer

Solution code:
a = int(input())
money = 100.0000000000000000
ans=0
while 1>0:
    money*=1.01
    ans+=1
    if money>=a:
        print(ans)
        break

Submission status: Wrong Answer

Solution code:
x=int(input())

sum=0
y=100
for i in range(100000):
  y=y*1.01
  if y<x:
    sum+=1
  else:
    sum=sum
print(sum+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(1+math.floor((math.log(X, 10)-2)/math.log(1.01, 10)))

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

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

for i in range(X-100):
  X = X / 1.01
  c = c + 1
  if X <= 100:
    break
    
print(c)

Submission status: Wrong Answer

Solution code:
X=int(input())
m=100
n=0
while True:
    if m<=X:
        n+=1
        m=int(m*1.01)
    else:
        print(n)
        exit()

Submission status: Wrong Answer

Solution code:
import math
from decimal import Decimal

x = int(input())
c = x/100
a = math.log10(1.01)
b = math.log10(c)

a = round(a,4)
b = round(b,4)

n = round(b/a,1)

print(int(n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

year = 1
while True:
    default = default + round(1 % default)
    if default == X:
        print(year)
        break
    year += 1

Submission status: Wrong Answer

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

print(count);

Submission status: Wrong Answer

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

while K < X:
  K = K*1.01
  K = round(K)
  i = i + 1
  
print(i)