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:
x = int(input())
money=100
t=0
while(money<x):
    t+=1
    money+=int(0.01*money)
print(t)

Submission status: Accepted

Solution code:
import sys
import math
sys.setrecursionlimit(10**7)

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

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

Submission status: Accepted

Solution code:
from sys import stdin
import math

x = int(stdin.readline().rstrip())
val = 100
n = 0

while(True):
  if val >= x:
    break
  val = int(val * 1.01)
  n += 1

print(n)

Submission status: Accepted

Solution code:
goal = int(input())
bank = 100
year = 0
while(bank<goal):
  if(bank < goal):
    bank *= 1.01
    bank = int(bank)
    year += 1
  else:
    break
print(year)

Submission status: Accepted

Solution code:
import itertools
x=int(input())
m=100
for i in itertools.count():
    if m>=x:
        break
    m=m*101//100
print(i)

Submission status: Accepted

Solution code:
# B
# 1%

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

while True:
    ans += 1
    A = int(A*1.01)
    if A >= X:
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    k = 100
    x = int(input())
    count = 0
    while k<x:
        k += (k//100)
        count+=1
    print(count)

Submission status: Accepted

Solution code:
import math

x = int(input())
orig = 100
counter = 0

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

print(counter)

Submission status: Accepted

Solution code:
last=int(input())
first=100
r=[]
while first<last:
  first=int(first*1.01)
  r.append(first)
  
R=len(r)

print(R)

Submission status: Accepted

Solution code:
K =int(input())
B = 100
C = []
while (B<K):
    B = int(B*1.01)
    
    C.append(B)
c = len(C)

print(c)

Submission status: Accepted

Solution code:
#author : dokueki

import sys
from math import log
INT_MAX = sys.maxsize
INT_MIN = -(sys.maxsize)-1
sys.setrecursionlimit(10**7)
mod = 1000000007


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


def main():
    a = int(sys.stdin.readline())
    p = 100
    cnt = 0
    while p < a:
        p += p // 100
        cnt += 1
    print(cnt)


if __name__ == "__main__":
    try:
        IOE()
    except:
        pass
    main()

Submission status: Accepted

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

while bank<X:
    bank = (bank*101)//100
    year += 1

print(year)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

money = 100
year = 0

while(money<x):
  year += 1
  money += money // 100
  
print(year)

Submission status: Accepted

Solution code:
x = int(input())

i = 0
a = 100
while a < x:
  a += a//100
  i += 1
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

moto = 100

for i in range(100000):
    moto = int(moto*1.01)
    if moto >= x:
        ans = i+1
        break
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
M = 100
count = 0
while True:
    M += M // 100
    count += 1
    if X <= M:
        print(count)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

year = 0
money = 100

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

print(year)

Submission status: Accepted

Solution code:
X = int(input())

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

print(ret)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    X = int(input())

    balance = 100
    for year in range(1, 10**9):
        balance = balance * 101 // 100
        if balance >= X:
            return year


def main():
    print(solve())


if __name__ == "__main__":
    main()

Submission status: Accepted

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

while p < x:
    p += p//100
    count += 1

print(count)

Submission status: Accepted

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


def main() -> None:
    X = ri()
    balance = 100
    for y in range(1, 10 ** 7):
        balance = int(balance * 1.01)
        if X <= balance:
            w(y)
            return


def r() -> str:
    return input().strip()


def ri() -> int:
    return int(r())


def rmi(delim: str = ' ') -> tuple:
    return tuple(map(int, input().split(delim)))


def w(data) -> None:
    print(data)


def wm(*data, delim: str = ' ') -> None:
    print(delim.join(map(str, data)))


if __name__ == '__main__':
    import sys
    sys.setrecursionlimit(10**9)
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())


y=x-100
a=100
n=0
while a<x:
    a=int(a*1.01)
    n+=1
print(int(n))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X = int(input())

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

print(n)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
X=int(input())
money=100
i=1
while True:
    money=money+money//100
    if money>=X:
        print(i)
        break
    i=i+1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b1= float(input())
b2 = float(100)
for i in range (1,10**18):
    b2 =int( b2 * 1.01)
    if b2 < b1 :
       continue
    else : break
print(i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

a = 100
c = 0
while a < n:
  c += 1
  a = a*1.01
  a = int(a)
  
print(c)

Submission status: Accepted

Solution code:
# coding: utf-8
import math

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

while True:
    a = math.floor(a * 1.01)
    b += 1
    if a >= x:
        print(b)
        exit()

Submission status: Accepted

Solution code:
import math

x = int(input())
money = 100
rate = 1.01
total = money
cnt = 0
while(True):
    total = math.floor(total * rate)
    cnt += 1
    if total >= x:
        break
    else:
        continue
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def i():
    return int(input())
def i2():
    return map(int,input().split())
def s():
    return str(input())
def l():
    return list(input())
def intl():
    return list(int(k) for k in input().split())

x=i()
a=100
cnt=0
while a < x:
	a=int(a*1.01)
	cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
X = int(input())
count = 0
y = 100
while True:
  if y < X:
    y = int(1.01 * y)
    count += 1
  else:
    break

print(count)

Submission status: Accepted

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

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

print(count)

Submission status: Accepted

Solution code:
x = int(input())

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

print(count)

Submission status: Accepted

Solution code:
def main():
    x = int(input())
    ans = 0
    m = 100
    while True:
        if m >= x:
            print(ans)
            exit()
        else:
            m = m + int(m * 0.01)
            ans += 1


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
target = int(input())
n = 100
i = 1.01
ans = 0

while True:
  n = int(n * i)
  ans += 1
  if n >= target:
    break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys
for i in range(10**7):
  a = int(a*1.01)
  if a>=x:
    print(i+1)
    sys.exit()

Submission status: Accepted

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

while depo < X:
    depo = int(depo + depo * 0.01)
    count += 1
print(count)

Submission status: Accepted

Solution code:
x = int(input())

m = 100
cnt = 0
while m < x:
    m = int(m*1.01)
    cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
import math

x = int( input() )
p = 100

for i in range( 10000000000 ):
    p_new = p * 1.01e0
#    print( p_new )
    p_new = math.floor( p_new )
#    print( p_new )
#    print( "\n" )

    if p_new >= x:
        print( i+1 )
        exit()

    p = p_new

Submission status: Accepted

Solution code:
def q2():
    X = int(input())
    ans = 0
    tmp = 100
    while True:
        tmp, _ = divmod(tmp*101, 100)
        ans += 1
        if tmp >= X:
            break
    print(ans)


if __name__ == '__main__':
    q2()

Submission status: Accepted

Solution code:
import  math

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

print(year)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())


def calc(X):
    money=100
    for i in range(X):
        if money >= X:
            # print(money)
            return i
        # if i != 0:
        money = (money + int(money * 0.01))

print(calc(X))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from math import floor

y = int(input())
x = 100
n = 0
while x < y:
    x += floor(x * 0.01)
    n += 1

print(n)

Submission status: Accepted

Solution code:
from sys import stdin, stdout
import math as m
rl = lambda: stdin.readline()
rll = lambda: stdin.readline().split()

def main():
	x = int(rl())
	c = 100
	y = 0
	while c < x:
		c = m.floor(1.01 * c)
		y += 1
	stdout.write(str(y));stdout.write("\n")
	stdout.close()

if __name__ == "__main__":
	main()

Submission status: Accepted

Solution code:
ini = 100
x = int(input())
bai = 1.01
nen = 0
while	x > ini:
  ini = int(ini * bai)
  nen = nen + 1
print(nen)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

X = int(readline())

cur = 100
y = 0
while cur < X:
  cur = int(cur * 1.01)
  y += 1
  
print(y)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X = int(input())

deposit = 100
year = 1

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

print(year)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Money=100
risi=0.01
year=0
target=int(input())
while(True):
    if Money>=target:
        print(year)
        exit()
    Money=int(Money*risi)+Money
    year+=1

Submission status: Accepted

Solution code:
import math

X = int(input())

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

print(i)

Submission status: Accepted

Solution code:
X = int(input())

yokin = 100
ans = 0
while X > yokin:
    yokin += yokin // 100
    ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans  = 0

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

savings = 100
interest = 1.01
count = 0
x = int(input())

while savings < x:
    savings = math.floor(savings * interest)
    count += 1

print(count)

Submission status: Accepted

Solution code:
def main():
    # 100円に毎年1%利子(複利・小数点切り捨て)->x円以上は何年後でしょうか
    x = int(input())

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

main()

Submission status: Accepted

Solution code:
import numpy as np
x = int(input())
n = 100
cnt = 0

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
y = 100
for year in range(1, 4000):
  y = int(y * 1.01)
  if y >= x:
    print(year)
    break

Submission status: Accepted

Solution code:

def input_from_console():
    x = int(input())
    return x


def solve(x):
    years = 0
    amount = 100
    rate = 0.01
    while amount < x:
        amount += int(amount * rate)
        years += 1
    return years


def main():
    x = input_from_console()
    print(solve(x))


if __name__ == "__main__":
    import sys

    if sys.gettrace():  # Check if the python interpreter is in debug mode or not.
        check_cases()
    else:
        main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X = int(input())

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

Submission status: Accepted

Solution code:
X = int(input())
v = 100
for i in range(1, 3761):
    v *= 1.01
    v = int(v)
    if v>=X:
        print(i)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

while X > money:

    money = math.floor(money * 1.01)
    cnt+=1
    # print(money)

print(cnt)

Submission status: Accepted

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

z = 100
r = 1.01
y = 0

while z < X:
    z = int(z * r)
    y += 1

print(y)

Submission status: Accepted

Solution code:
import math

x = int(input())

currentMoney = 100
r = 0.01

i = 0
while x > currentMoney:
    currentMoney += math.floor(currentMoney * r)
    i += 1

print(i)

Submission status: Accepted

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

Submission status: Accepted

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

while True:
    total += total // 100
    i += 1
    
    if total >= x:
        break
print(i)

Submission status: Accepted

Solution code:
x = int(input())
a = 100
for i in range(10000):
	a *= 1.01
	a = int(a)
	if a >= x:
		print(i + 1)
		exit()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools
import sys


def solve(X: int):
    m = 100
    ans = 0

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

    print(ans)


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:
import math
X = int(input())

yokin = 100
nensuu = 0

while yokin < X:
	yokin = math.floor(yokin * 1.01)
	nensuu += 1

print(nensuu)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X=int(input())
A=100
n=0

while A<X:
  n+=1
  A=math.floor(A*(1.01))
  
print(n)

Submission status: Accepted

Solution code:
X = int(input())

ans = 0
yokin = 100

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

Submission status: Accepted

Solution code:
# 繰り返しで求める
# 100 * (1.01 ** n) がX以上になるまでnを増やしていく
import math

def resolve_v1(X: int) -> int:
    n = 1
    balance = math.floor(100 * 1.01)
    while balance < X:
        balance = math.floor(balance * 1.01)
        n += 1
    return n


if __name__ == '__main__':
    X = int(input())
    n = resolve_v1(X)
    print(n)

Submission status: Accepted

Solution code:
import math

X=int(input())


ans=0
x=100

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

print(ans)

Submission status: Accepted

Solution code:
new = 100
cnt  = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

tmp = 100
i = 0
while True:
  i += 1
  tmp *= 1.01
  tmp = int(tmp)
  if tmp >= n:
    break
    
print(i)

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
a = int(input())
saving = 100
count_year = 0

while saving < a:
    saving = saving * 101 // 100
    count_year += 1
print(count_year)

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
x = int(input())
#x = 1333333333

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

Submission status: Accepted

Solution code:
x = int(input())

p = 100
cnt = 0

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

print(cnt)

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
#at coder beginner contest165 1%
#
import math

input1 = input()
Ns = int(input1)

wallet=100
i=0

while wallet < Ns:
    wallet=math.floor(wallet*1.01)
    i=i+1

print(i)

Submission status: Accepted

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

depo = 100.0
cnt = 0
while depo < x:
    depo += math.floor(depo*0.01)
    cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
import math

x = int(input())
#x = 1000

monay = 100
count = 0

while True:
    monay = monay * 1.01
    monay = math.floor(monay)
    count = count + 1

    if monay >= x:
        break
    else:
        continue

print(count)

Submission status: Accepted

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

while yen < X:
    d = yen // 100
    yen += d
    c  += 1
print(c)

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

Solution code:
from math import floor
def Main(X):
    i = 1
    a = 100
    while True:
        a = floor(a*1.01)
        if a >= X:
            return i
        i += 1
        
def main():
    X = int(input())
    print(Main(X))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
X = int(input())

x = 100
t = 0
while x < X:
  t += 1
  x = int(x*1.01)
print(t)

Submission status: Accepted

Solution code:
x = int(input())

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

print(b)

Submission status: Accepted

Solution code:
import math

target_yen = int(input())
years = 0
current_yen = 100

while current_yen < target_yen:
    years = years + 1
    current_yen = math.floor(current_yen * 1.01)

print(str(years))

Submission status: Accepted

Solution code:
#ABC165b
x = int(input())
b = 100
n = 0
while b<x:
    n += 1
    b = float(b) * 1.01
    b = int(b)

print(n)

Submission status: Accepted

Solution code:
import math

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

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

if __name__ == '__main__':
    q_b()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
X = int(input())
x1 = 100
r = 0.01
t = 0
if 101 <= X <=10**18:
    while x1 < X:
        R = int(x1 * r)
        x1 = R + x1
        t = t + 1
    print(t)

Submission status: Accepted

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

    i = 0
    while True:
        deposit = int(deposit * 1.01)
        i += 1

        if deposit >= X:
            print(i)
            exit()

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# from sys import exit

def main():
    x = int(input())
    d = 100
    ans = 0
    
    while d < x:
        d = int(d*1.01)
        ans += 1
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from functools import reduce
from fractions import gcd
import math
import bisect
import itertools
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
INF = float("inf")


def main():
    X = int(input())
    
    money = 100
    res = 0
    while money < X:
        money = int(money * 1.01)
        res += 1
    
    print(res)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

n = 0
balance = 100

while(X-balance > 100):
  
  step = balance // 100
  a = balance % 100
  year = -(-(100 - a) // step)
  n += year
  balance += year * step
  
step = balance // 100
rest = X - balance
n += -(-rest // step)
print(n)

Submission status: Accepted

Solution code:
n=int(input())
def money(n):
  m=100
  for i in range(1000000):
    m*=1.01
    m=m//1
    if m>=n:
      return i+1
      break
print(money(n))

Submission status: Accepted

Solution code:
N=int(input())
def money(N):
  M=100
  for i in range(50000):
    M*=1.01
    M=M//1
    if M>=N:
      return i+1
      break
print(money(N))

Submission status: Accepted

Solution code:
import math

x = int(input())
yen = 100

year = 0
while True:
    year += 1
    yen *= 1.01
    yen = math.floor(yen)
    if yen >= x:
        break

print(year)

Submission status: Accepted

Solution code:
from sys import stdin, stdout
import math
import bisect
import datetime
from collections import defaultdict
import random

x = int(stdin.readline().strip())

now = 100
cnt = 0

while now < x:
    now *= 1.01
    now = int(now)
    cnt += 1
    
stdout.writelines(str(cnt) + '\n')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())


money = 100
count = 0

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


print(count)

Submission status: Accepted

Solution code:
from sys import stdin
import math
import fractions
from collections import deque
from collections import Counter
import itertools

INF = 10 ** 10

X = int(stdin.readline().rstrip())

year = 1
num = 100
while True:
    num = math.floor(num * 1.01)
    if num >= X:
        print(year)
        exit()

    
    year += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

X = int(input())

t = 0
m = 100

while m < X:
  m = math.floor(m * 1.01)
  t += 1

print(t)

Submission status: Accepted

Solution code:
x=int(input())
a=100
for i in range(100000):
    a*=101
    a//=100
    if a>=x:
        print(i+1)
        exit()

Submission status: Accepted

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

n = 0

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

Submission status: Accepted

Solution code:
x = int(input())

m = 100
i = 1
while True:
    m *= 1.01
    m //= 1
    if m >= x:
        print(i)
        exit()
    i += 1

Submission status: Accepted

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

print(ans)