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:
class abc_165:
    
    def __init__(self):
        pass
    
    def A(self):
        K=int(input())
        AB=list(map(int,input().split()))
        flag=False
        
        for i in range(AB[0],AB[1]+1):
            if i%K==0:
                flag=True
                break
            else :pass
        
        if flag==True:print("OK")
        else: print("NG")
    
    def B(self):
        X=int(input())
        mane=100
        count=0
        
        while(mane<X):
            mane+=int(mane*0.01)
            count+=1
        
        print(count)    
    
    def C(self):
        pass
        
    def D(self):
        pass
    
    def E(self):
        pass
    
    def F(self):
        pass
    
    
if __name__=='__main__':
    obj=abc_165()
    obj.B()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math


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

    print(year)


resolve()

Submission status: Accepted

Solution code:
import math

x = int(input())

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

  if money >= x:
    break

print(i)

Submission status: Accepted

Solution code:
import math
x = int(input())
y = 100.0
for i in range(1, 10000, 1):
    y = math.floor(y * 1.01)
    if y >= x:
        print(i)
        exit()

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(10**9):
    day += 1
    yen *= 1.01
    yen = int(yen)
    if X <= yen:
        print(day)
        exit()

Submission status: Accepted

Solution code:
X = int(input())

deposit = 100
years = 0

while True:
    if deposit >= X:
        break
    deposit *= 1.01
    deposit = int(deposit)
    years += 1

print(years)

Submission status: Accepted

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

yen = 100
for i in range(10**18):
    yen = math.floor(yen*1.01)
    if yen >= x:
        print(i+1)
        exit()

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0

yen = 100
while X > yen:
    yen = math.floor(yen * 1.01)
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
s = int(input()) 
p = 100
for i in range(5000):
    intr = p//100
    p+=intr
    if p>=s:
        print(i+1)
        break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

now = 100
start = 100
year = 0

while now < x:
  year += 1
  now = math.floor(now * 1.01)

print(year)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10**7)
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
ns = lambda: readline().rstrip()
ni = lambda: int(readline().rstrip())
nm = lambda: map(int, readline().split())
nl = lambda: list(map(int, readline().split()))
printn = lambda x: print('\n'.join(x))

x = ni()
v = 100
for i in range(1, 4000):
    v += v // 100
    if v >= x:
        print(i)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
x = float(input())
a = 1
y = float(100.0)
while True:
	y *= 1.01
	y = math.floor(y)
	if y >= x:
		print(a)
		break
	a += 1

Submission status: Accepted

Solution code:
x = int(input())
a = 100
for i in range(1, 4000):
    a = a + (1/100)*a
    a = int(a)
    if a>=x:
        print(i)
        break

Submission status: Accepted

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

base = 100
year = 0

while x > base:
     year += 1
     base = math.floor(base + base * 0.01)
     
print(year)

Submission status: Accepted

Solution code:
k = int(input())
n = 100
for i in range(1, 10**18):
    n = (n * 101) // 100
    if n >= k:
        print(i)
        exit()

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

Solution code:
i=int(input())
sum=100
for j in range(1,100000000):
    sum=int(sum*1.01)
    if sum>=i:
        print(j)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

ans = 0
y = 100

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

Submission status: Accepted

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

current = 100
count = 0
X = int(input())

def run(num, count):
    num = int(num * 1.01)
    count += 1
    return num, count 
    
while X > current:
    current, count = run(current, count)

print(count)

Submission status: Accepted

Solution code:
import math

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

    ans = 0
    interest = 100
    while True:
        if X <= interest:
            break

        interest = math.floor(interest*1.01)
        ans += 1

    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
year = 0
sum = 100
yen = int(input())

while sum < yen:
    year += 1
    sum = math.floor(sum*1.01)
print(year)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import floor

X = int(input())

initial = 100
riritsu = 0.01
total = initial

year = 0

while total < X:
  total = total + floor(total * riritsu)
  year = year + 1

print(year)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X=int(input())
M=100
count=0
while M < X:
    M=math.floor(M*1.01)
    count+=1
print(count)

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:
import math

x = int(input())

money = 100
count = 0

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

print(count)

Submission status: Accepted

Solution code:
x = int(input())

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

print(k - 1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
math.floor(11/3)

k = int(input())

ans = 100
i = 0

while True:
  i = i+1
  ans = math.floor(ans * 1.01)
#  print(ans,i)

  if ans >= k:
    break

    
print(i)

Submission status: Accepted

Solution code:
#coding:utf-8

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

while x > a:
    a = int(a * 1.01)
    count += 1

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

Submission status: Accepted

Solution code:
import sys
rs = lambda: sys.stdin.readline().rstrip()
ri = lambda: int(rs())
rf = lambda: float(rs())
lrs = lambda: [_ for _ in rs().split()]
lri = lambda: [int(_) for _ in rs().split()]
lrf = lambda: [float(_) for _ in rs().split()]
import math
X = ri()
n = 100
for i in range(1, 10000):
    n = int(n * 1.01)
    if n >= X:
        print(i)
        exit()

Submission status: Accepted

Solution code:
x = int(input())

years = 0
amount = 100
while amount < x:
    amount += amount//100
    years += 1

print(years)

Submission status: Accepted

Solution code:
X = int(input())

N = X - 100
ans = 100
for i in range(10000):
  if X <= ans:
    print(i)
    break
  ans += ans // 100

Submission status: Accepted

Solution code:
import numpy as np

x = int(input())
base = 100

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

print(year)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


ans = 1
p = 100
for i in range(1, 10**6):
    p = math.floor(p * (101) / 100)
    if(p >= X):
        print(ans)
        exit()
    else:
        ans += 1

Submission status: Accepted

Solution code:
X = int(input())


deposit = 100
year = 0
while X > deposit:
    deposit = int(deposit * 1.01)
    year += 1

print(year)

Submission status: Accepted

Solution code:
import math

X = int(input())
S = 100

for i in range(1, X):
  R = math.floor(S * 0.01)
  S += R
  if X <= S:
    print(i)
    exit()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X = int(input())

ans = 0
mount = 100
while X > mount:
	ans += 1
	mount = math.floor(mount * 1.01)
print(ans)

Submission status: Accepted

Solution code:
# coding: utf-8

import math

X = int(input())

n = 0
money = 100

while True:
    n += 1
    money = math.floor(money)*1.01
    if money>= X:
        print(n)
        break

Submission status: Accepted

Solution code:
X = int(input())
now = 100
ans = 0
while True:
    if now >= X:
        print(ans)
        exit()
    else:
        now = int(now * 1.01)
        ans += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
x = int(input())
counter = 0
a = 100

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

print(counter)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(counter)

Submission status: Accepted

Solution code:
import math 

target = int(input())
origin = 100
count = 0

while origin < target:
  origin = math.floor(origin * 1.01)
  count = count + 1

print(count)

Submission status: Accepted

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

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
m = 100
target = int(input())
rate = 0.01
cnt_year = 0

while True:
    m += int(m * rate)
    cnt_year += 1
    if m >= target:
        print(cnt_year)
        break

Submission status: Accepted

Solution code:
import math

X = int(input())
count = 0
deposit = 100

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

print(count)

Submission status: Accepted

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

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

Submission status: Accepted

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

print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

def main():
    X = int(input())
    ans = 0
    Y = 100
    while True:
        if Y >= X:
            print(ans)
            break
        Y = Y + math.floor(Y*0.01)
        ans += 1

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
x = int(input())
i = 0
value = 100
while (value < x):
    i += 1
    value = math.floor(value*1.01)
    # print(i, '年目に', value)
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
import sys
from collections import Counter
from itertools import permutations, combinations
#from fractions import gcd
from math import gcd
from math import ceil, floor
from math import log10
import bisect
sys.setrecursionlimit(10 ** 6)
inf = float("inf")

def input():
    return sys.stdin.readline()[:-1]

def main():
    x = int(input())
    cnt = 0
    initial = 100
    while initial < x:
        initial = floor(initial * 1.01)
        cnt += 1
    print(cnt)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())

money = 100
count = 0

for i in range(x+1):
    money = int(money*1.01)
    count += 1
    if money >= x:
        print(count)
        break

Submission status: Accepted

Solution code:
x = int(input())

yokin=100
year=0

while yokin<x:
  yokin=yokin+(int(yokin*0.01))
  year=year+1

print(year)

Submission status: Accepted

Solution code:
import math

def main():
    x = int(input())
    ans = 0
    pivot = 100
    while x > pivot:
        pivot =  math.floor(pivot * 1.01)
        ans += 1
    print(ans)      

if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    X = int(input())
    total = 100
    for i in range(1, 10**18):
        total = int(total *1.01) 
        if total >= X:
            print(i)
            break

Submission status: Accepted

Solution code:
import sys
X = int(input())
# A, B = map(int, input().split())
money = 100
interest = 1
for i in range(1, 10**5):
	money = int(money*1.01)
	if money >= X:
		print(i)
		sys.exit(0)

Submission status: Accepted

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

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

print(year)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

x=int(input())

a=100
c=0

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

print(c)

Submission status: Accepted

Solution code:
import math
# from collections import Counter

# N = int(input()) # 1行, 単数
# arg = list(map(int, input().split())) # 1行, 配列
# D = Counter(arg) # 出現数カウント

# print('Yes')
# print('No')
# print()
N = int(input()) # 1行, 単数

i = 100
z = 1.01
count = 0
while i < N:
  i = math.floor(i * z)
  count = count + 1

print(count)

Submission status: Accepted

Solution code:
x = int(input())

m = 100

count = 0
while(m <= 1000000000000000000):
    
    if m >= x:
        break
    
    m = int(m * 1.01)
    
    count += 1
    
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X=int(input())

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

m=100
count=0

while True:
    m=m+m//100
    count+=1
    if m>=x:
        break

print(count)

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
import numpy as np
from math import ceil, floor


x = int(input())
ans = 100
for i in range(1, 10 ** 4):
    ans = floor(1.01 * ans)
    if ans >= x:
        print(i)
        exit()

Submission status: Accepted

Solution code:
import numpy as np
x = int(input())
count = 0
origin = 100
while(1):
  origin *= 1.01
  origin = int(origin)
  count += 1
  if(x <= origin):
    break
print(count)

Submission status: Accepted

Solution code:
# Problem B - 1%

import math

# input
X = int(input())

# initialization
ans = 0
tmp_count = 100

# count
while tmp_count<X:
    tmp_count = math.floor(tmp_count * 1.01)
    ans += 1

# output
print(ans)

Submission status: Accepted

Solution code:
#########行列読み込み ##############################################
"""
from sys import stdin
n = int(stdin.readline().rstrip())
data = [stdin.readline().rstrip().split() for _ in range(n)]
print(data)
print(*data, sep='\n')
"""
##################################################################
#########入力系####################################################
"""
s =input()
s=list(input())
a=int(input())
x,y = map(int,input().split())	
li = input().split()	
li = list(map(int,input().split()))	
li = input().split('T')	
"""
##################################################################
X = int(input())
C =100
cnt = 0
while True:
    C += C//100
    cnt += 1
    if C>=X:
        break
print(cnt)

Submission status: Accepted

Solution code:
import sys
import math

input = sys.stdin.readline
MOD = 1000000007

X = int(input())

ans  = 100
cnt = 0
while X > ans:
    ans =int(ans*1.01)
    cnt+=1

print(cnt)

Submission status: Accepted

Solution code:


x = int(input())

n = 100
i = 0
while 1:
    n = n * 101 // 100
    i += 1
    if n >= x:
        print(i)
        break

Submission status: Accepted

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


def solve(X: int):
    a=100
    b=0
    while True:
        a=int(a*1.01)
        b+=1
        if a>=X:
            print(b)
            break
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  # type: int
    solve(X)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

n = 0
b = 100

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

print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

def rainen(yen):
    rainen = int(1.01 * yen)
    return rainen

nen = 0
yokin = 100

while yokin < x:
    nen +=1
    yokin = rainen(yokin)

print(int(nen))

Submission status: Accepted

Solution code:
X = int(input())

A = 100
i = 0

while True:
  i += 1
  A += A // 100
  if A >= X:
    print(i)
    break

Submission status: Accepted

Solution code:
import math

x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

    for cycle in range(1,1000000000000000000) :
        M = int(M * (1.01))
        #print(M)
        if M >= X :
            print(cycle)
            break

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#B
x=int(input())
money=100
y=0
while True:
    if money>=x:
        print(y)
        exit()
    else:
        money=(money*1.01)//1
        y+=1

Submission status: Accepted

Solution code:
x = int(input())

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

print(i)

Submission status: Accepted

Solution code:
import math

X = int(input())

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

print(t)

Submission status: Accepted

Solution code:
import math

a = 100
amt = int(input())
t = 0
while (a < amt):
	a = math.floor(1.01 * a)
	
	t += 1
print(t)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FileName: 	B
# CreatedDate:  2020-05-02 20:53:09 +0900
# LastModified: 2020-05-02 21:22:27 +0900
#


import os
import sys


def main():
    x=int(input())
    y=100
    for ans in range(1,3761):
        y = y + int(y*0.01)
        if y>=x:
            print(ans)
            return
    


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math
def main():
    X= int(input())
    r = 100
    for i in range(1, 4000):
        r *= 1.01
        r = int(r)
        if r >= X:
            return i
print(main())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

r = 100
i = 1.01
cnt = 0
while True:
    if r >= x:
        print(cnt)
        break
    r = int(r * i)
    cnt += 1

Submission status: Accepted

Solution code:
import math

def solve():
    m = 100
    count = 0
    while m < x:
        count += 1
        m = math.floor((m * 1.01))
    print(count)
    return


x = int(input())
#n, k = [int(s) for s in input().split(" ")]
solve()

Submission status: Accepted

Solution code:
x = int(input())

year = 0
mon = 100
while(True):
    if (mon >= x):
        print(year)
        break
    a = int(mon * 0.01)
    mon += a  
    year += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

x = int(input())
balance = 100.0
ans = 0

while balance < x:
    ans += 1
    balance += math.floor(balance * 0.01)

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import deque
from heapq import heapify,heappop,heappush,heappushpop
from copy import copy,deepcopy
from itertools import permutations,combinations
from collections import defaultdict,Counter
from bisect import bisect_left,bisect_right
from math import gcd,ceil,floor,factorial
# from fractions import gcd
from functools import reduce
from pprint import pprint

def myinput():
    return map(int,input().split())

def mylistinput(n):
    return [ list(myinput()) for _ in range(n) ]

def mycol(data,col):
    return [ row[col] for row in data ]

def mysort(data,col,reverse_flag):
    data.sort(key=lambda x:x[col],reverse=reverse_flag)
    return data

def mymax(data):
    M = -1*float("inf")
    for i in range(len(data)):
        m = max(data[i])
        M = max(M,m)
    return M

def mymin(data):
    m = float("inf")
    for i in range(len(data)):
        M = min(data[i])
        m = min(m,M)
    return m

def myoutput(ls,space=True):
    if space:
        if len(ls)==0:
            print(" ")
        elif type(ls[0])==str:
            print(" ".join(ls))
        elif type(ls[0])==int:
            print(" ".join(map(str,ls)))
        else:
            print("Output Error")
    else:
        if len(ls)==0:
            print("")
        elif type(ls[0])==str:
            print("".join(ls))
        elif type(ls[0])==int:
            print("".join(map(str,ls)))
        else:
            print("Output Error")

x = int(input())
a = 100
r = 1.01

m = 100
for i in range(1,3761):
    m = floor(m*r)
    if m>=x:
        print(i)
        exit()
    else:
        pass

Submission status: Accepted

Solution code:
import math

x = int(input())

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

print(c)

Submission status: Accepted

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

print(count)

Submission status: Accepted

Solution code:
x = int(input())

j = 100
time = 0
while j < x:
    j = int(j * 1.01)
    time += 1
print(time)

Submission status: Accepted

Solution code:
x = int(input())
l = [1]

total = 100
rate = 1

year = 0

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

print(year)

Submission status: Accepted

Solution code:
import sys
import math

def main():
    input = sys.stdin.readline
    X = int(input())
    count = 1
    s = 100
    while True:
        s = math.floor(s * 0.01) + s
        if s >= X:
            return count
        count += 1

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

Submission status: Accepted

Solution code:
import math

x = int(input())

n = 0
t = 100
while True:
  t = math.floor(t * (1.01))
  n += 1
  if t >= x:
    break

    
print(n)

Submission status: Accepted

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

print(n)

Submission status: Accepted

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

import math
x = int(input())
kane = 100
ans = 0
while(kane<x):
    kane = int(kane * 1.01)
    ans += 1


print(ans)

Submission status: Accepted

Solution code:
import sys,os
from collections import defaultdict, deque
from math import ceil, floor
if sys.version_info[1] >= 5:
    from math import gcd
else:
    from fractions import gcd
sys.setrecursionlimit(10**6)
write = sys.stdout.write
dbg = (lambda *something: print(*something)) if 'TERM_PROGRAM' in os.environ else lambda *x: 0
def main(given=sys.stdin.readline):
    input = lambda: given().rstrip()
    LMIIS = lambda: list(map(int,input().split()))
    II = lambda: int(input())
    MOD = 10**9+7


    X = II()
    #100 *1.01^y >= X
    # 1.01 ^ y >= X/100

    # log(1.01^y) >= log(x/100)
    # y >= log(x/100)/log(1.01)
    # from math import log
    # print(ceil(log(X/100)/(log(1.01))))
    y = 0
    t = 100
    while t < X:
        t = t*1.01//1
        y += 1
    print(y)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

print(y)

Submission status: Accepted

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

print(count)

Submission status: Accepted

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