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())
s = float(100.0)
count = 0

while s < x:
    s = int(s*1.01)
    # print(s)
    count += 1

print(count)

Submission status: Accepted

Solution code:
X, count = int(input()), 0
while ((account := account + account // 100) if count else (account := 100)) < X and (count := count + 1): pass
print(count)

Submission status: Accepted

Solution code:
from sys import exit, stdin
X = int(stdin.readline().rstrip())
deposit = 100
ans = 0
while deposit < X:
    deposit *= 1.01
    deposit = int(deposit)
    ans += 1
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
b = 100
n = 0
for i in range(1,x):
  if b < x:
    b += int(b/100)
    n += 1
  else:
    break
print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
x = int(input())
tmp = 100
ans = 0
for i in range(10 ** 4):
    tmp = int(tmp * 1.01)
    ans += 1
    if tmp >= x:
        print(ans)
        exit()

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,copy,functools
import time,random

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
mod2 = 998244353
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)
def pe(s): return print(str(s), file=sys.stderr)
def JA(a, sep): return sep.join(map(str, a))
def JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)


def main():
    x = I()
    t = 100
    r = 0
    while t < x:
        r += 1
        t += t // 100

    return r


print(main())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

while True:
    i += 1
    money = int(money * 1.01)
    if money >= x:
        break

print(i)

Submission status: Accepted

Solution code:
#  =========     /\       /|    |====/|
#      |        /  \       |    |   / |
#      |       /____\      |    |  /  |
#      |      /      \     |    | /   |
#  ========= /        \  =====  |/====|  
#  code

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

    def bs(m):
        inp = 100
        for i in range(m):
            inp = int(inp * 1.01)
        return inp >= x
    
    l = 0
    r = 100000
    ans = 0
    while l <= r:
        mid = (r - l) // 2 + l
        if bs(mid):
            r = mid - 1
            ans = mid
        else:
            l = mid + 1
    print(ans)
    return

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import exit

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:
#!/usr/bin/env python3
# Atcoder necoak answer
# https://atcoder.jp/contests/abc165/tasks/abc165_b
import math

input_x = input()
x = int(input_x)

zandaka = 100
nen = 0

while zandaka < x:
    nen += 1
    zandaka = math.floor(zandaka * 1.01)

print(nen)

Submission status: Accepted

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

for i in range(100000000):
    s = deposit // 100
    deposit += s
    if deposit >= x:
        print(i+1)
        break

Submission status: Accepted

Solution code:
X = int(input())
D = 100
for i in range(10000):
    if D >= X:
        ans = i
        break
    D = int(D*1.01)
print(ans)

Submission status: Accepted

Solution code:
def main():
    import sys
    input = sys.stdin.readline

    X = int(input())

    i = 0
    var = 100
    while True:
        i += 1
        var *= 1.01
        var = int(var)
        if var >= X:
            print(i)
            exit()


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [100]
for i in range(4000):
    a.append(a[-1] + a[-1] // 100)
x = int(input())
for i in range(4000):
    if a[i] >= x:
        print(i)
        exit()

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
#2
import math
X=int(input())
M=100
Year=0
while M<X:
    M=math.floor(M*1.01)
    Year+=1
print(Year)

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:
target = int(input())
money = 100
year = 0

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

Submission status: Accepted

Solution code:
x = int(input())
num = 100
out = 0

while x > num:
  numa = num * 1.01
  num = int(numa)
  out = out +1

print(out)

Submission status: Accepted

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

while a < x:
    a += math.floor(a * 0.01)
    answer += 1
print(answer)

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:
#!/usr/bin/env python3
import sys


def solve(X: int):
    y = 100
    ans = 0
    while y < X:
        y = (101 * y) // 100
        ans += 1
    print(ans)
    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:
def main():
    import math

    x = int(input())

    deposit = 100
    for i in range(10000):
        if x <= deposit:
            print(i)
            break
        deposit = math.floor(deposit * 1.01)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())

s = 100
ans = 0
while s < x:
  t = int(s*0.01)
  s = s+t
  ans += 1
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import math

X = int(input())
money, year = 100, 0

while True:
    if money >= X:
        print(year)
        exit()
    else:
        money = math.floor(money * 1.01)
        year += 1

Submission status: Accepted

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

while i < a:
	i = int(i * 1.01)
	count += 1

print(count)

Submission status: Accepted

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

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:
import math
X = int(input())
total = 100
kinri = 1.01
year = 0
while total < X:
    year += 1
    total = math.floor(total * kinri)
    # print(total)
    
print(year)

Submission status: Accepted

Solution code:
import math
X = int(input())
total = 100
kinri = 1.01
for i in range(100, 1000000000000000000):
    total = math.floor(total * kinri)
    # print(i-99, total)
    if total >= X:
        print(i-99)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = input()

flag = 0
asset = []
asset.append(100)
for i in range(1, 10000):
  asset.append(int(asset[i-1]*1.01))
  if asset[i] >= int(X):
    print(i)
    break

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

deposit = 100
ans = 0

while 1:
    #print(deposit)

    if deposit >= X:
        print(ans)
        break
    else:
        deposit = deposit*101//100
        ans += 1

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 6)
# input = sys.stdin.readline    ####
int1 = lambda x: int(x) - 1
def II(): return int(input())

def MI(): return map(int, input().split())
def MI1(): return map(int1, input().split())

def LI(): return list(map(int, input().split()))
def LI1(): return list(map(int1, input().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

INF = float('inf')

def solve():
    x = II()
    yen = 100
    for i in range(1, 10000):
        yen = int(yen * 1.01)
        if yen >= x:
            print(i)
            return


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

ans = 0
S = 100

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve(x):
    y = 100
    ans = 0
    while y < x:
        y = int(y * 1.01)
        ans += 1
    return ans

x = int(input())
print(solve(x))

Submission status: Accepted

Solution code:
#MLE注意！0や1のケースに注意

def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    #from collections import defaultdict
    from itertools import combinations, permutations, accumulate, groupby, product
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    import math
    from math import gcd

    #inf = 10**17
    #mod = 10**9 + 7

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

tmp = 100

ans = 0
while tmp < X:
    tmp = (tmp * 101) // 100
    ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    x=int(input())
    r=1+0.01
    n=1
    p=100
    while(p<x):
        p=int(p*r)
        n+=1
    print(n-1)
solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import floor

X = int(input())
d = 100.0
ans = 1

while True:
	d = floor(d * 1.01)
	if d >= X:
		print(ans)
		exit(0)
	ans += 1

Submission status: Accepted

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

'''
x == 100 * (1.01)**a
'''

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

print(a)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
X = int(input())

v = 100
ans = 0
while v < X:
    v = int(v * 1.01)
    ans += 1
print(ans)

Submission status: Accepted

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

cnt = 0
while p < x:
    p += p // 100
    cnt += 1
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input().strip())
dep = 100
year = 1
while True:
    p1 = int(dep * 0.01)
    dep += p1
    if dep >= X:
        print(year)
        break
    else:
        year += 1

Submission status: Accepted

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


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

print(count)

Submission status: Accepted

Solution code:
X = int(input())
M = 100
Y = 0

while X > M:
  M = int(M*1.01)
  Y += 1
  
print(Y)

Submission status: Accepted

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

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

print(count)

Submission status: Accepted

Solution code:
import math

X=int(input())
m=100
a=0
for i in range(1,4000):
  m*=1.01
  m=math.floor(m)
  if m>=X:
    a=i
    break
print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

n = 100
result = 0

while n < X:
    result += 1
    n = int(n * 1.01)

print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
p = 100
cnt=0
while(1):
  cnt+=1
  p+=p//100
  if(p>=a):
    break
print(cnt)

Submission status: Accepted

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

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

print(year)

Submission status: Accepted

Solution code:
import math


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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
import math

x = int(input())

y = 0
z = 100
while x > z:
  z = int(z*1.01)
  y += 1

print(y)

Submission status: Accepted

Solution code:
import math

x = int(input())

a = 100
cnt = 0

#file = open('test.txt', 'w')

while a < x:
    a = a*1.01
    a = int(a)
    b = str(a)
#    file.write(b + '\n')
    cnt = cnt + 1

#file.close()
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import floor
x=int(input())
t=100
for i in range(1,100000):
    t=t+t//100
    if t>=x:
        print(i)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:

x = int(input())

i = 100
y = 0

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

print(y)

Submission status: Accepted

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

import math

x = int(input())

count = 0
value = 100
while(1):
    # for i in range(100):
    count += 1
    value = math.floor(value*1.01)
    # print(value)
    if value >= x:
        break
print(count)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

x=int(input())
balance = 100
yrs = 0
while x > balance:
    balance += math.floor(balance*0.01)
    yrs += 1
print(yrs)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
x = int(input())

money = 100
year = 0

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

print('{}'.format(year))

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())


kouza = 100
count = 0
while X > kouza:
     kouza = int(kouza * 1.01)
     count += 1
print(count)

Submission status: Accepted

Solution code:
import math

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

while True:
    bal += math.floor(bal * 0.01)
    count += 1
    if bal >= x:
        break

print(count)

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys, math
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

X = ri()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input()); count, p = 0, 100
while (p < a):
    p += p//100 
    count += 1
else:
    print(count)

Submission status: Accepted

Solution code:
zyogen=int(input())
c=0
kingaku=100
while 2>0:
  c+=1
  kingaku=int(kingaku*1.01)
  if kingaku>=zyogen:
    break
print(c)

Submission status: Accepted

Solution code:
import bisect
x = int(input())
n = 3933
me = [0] * n
me[0] = 100
for i in range(1, n):
  me[i] = int(me[i-1] * 1.01)
ans = bisect.bisect_left(me, x)
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

x=int(input().rstrip())

now=100
y=0
while now<x:
    y+=1
    now+=now//100
print(y)

Submission status: Accepted

Solution code:
import math

if __name__ == '__main__':
    x = int(input())
    count = 0
    now = 100
    while now < x:
        now = math.floor(now * 1.01)
        count += 1

    print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
x = int(input())
bank = 100
count = 0
while True:
    if bank >= x:
        print(count)
        sys.exit()
    else:
        bank *= 1.01
        bank= int(bank)
        count += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b = 100
c = 0
while True:
  b += int(b / 100)
  c += 1
  if b >= a:
    print(c)
    exit()

Submission status: Accepted

Solution code:
x = int(input())

money = 100
ans = 0
while money < x:
    money += int(money / 100)
    ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())
i,a,ans=0,0,100

while 1:
    if ans>=x:
        print(i)
        break

    else :
        i+=1
        ans=int(ans*1.01)

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())
sum_ = 100
for i in range(1, 10**18+2):
    sum_ = int(sum_ * 1.01)
    if sum_ >= x:
        break
print(i)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
x = int(input())
m = 100

for i in range(10 ** 18):
  if m >= x:
    print(i)
    break
  m = int(m * 1.01)

Submission status: Accepted

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

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

print(n)

Submission status: Accepted

Solution code:
x = int(input())
a = 100
for i in range(1, 10**6):
    a += int(a * 0.01)
    if a >= x:
        print(i)
        exit()

Submission status: Accepted

Solution code:
x = int(input())

yokin = 100
year = 0
while True:
	if yokin >= x: break
	year += 1
	yokin += (yokin // 100)

print(year)

Submission status: Accepted

Solution code:
x = int(input())
yokinn = 100
n = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

k = 100
c = 0
while True:
  k = int(k*1.01)
  c += 1
  if n<=k:
    break
print(c)

Submission status: Accepted

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

i = 0
b = 100

while b < x:
    b += int(0.01*b)
    i += 1

print(i)

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X=int(input())
n=100
for i in range(10000):
    if n>=X:
        print(i)
        exit()
    n+=n//100

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
S=100
for i in range(1,10**18):

    S=int(S*1.01)
    if S>=X:
        
        break
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

a, y = 100, 0

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

print(y)

Submission status: Accepted

Solution code:
X = int(input())

def multiple_year(n): #n円預けてた時、一年後の預金額
    money = int(n * 101 / 100)
    return money

money = 100 #最初百円
year = 0
while X > money :
    money = multiple_year(money)
    year = year + 1
print(year)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def LI(): return list(map(int, stdin.readline().split()))
def LS(): return list(stdin.readline())

import math
a = 100
x = int(input())
cnt = 0
while True:
    a = math.floor(a*1.01)
    cnt += 1
    if a>=x:
        break
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

#output
#X(n) = 100*(1.01)**(n-1) >= X
#(1.01)**(n-1) >= X/100
#(n-1)log(1.01) >= log(X/100)
#n >= log(X/100)/log(1.01) + 1
n = 0
money = 100
while money < X:
    money *= 1.01
    money = int(money)
    n += 1

print(n)

Submission status: Accepted

Solution code:
import math
k = int(input())
y = 100
count = 0
while True:
    if y >= k:
        print(count)
        exit()
    y += math.floor(y * 0.01)
    count += 1

Submission status: Accepted

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

Submission status: Accepted

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

while d < x:
    d += d // 100
    ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import setrecursionlimit, exit
setrecursionlimit(1000000000)

def main():
    a = 100
    x = int(input())
    ans = 0
    while a < x:
        a += a // 100
        ans += 1
    print(ans)

main()

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(10**8)
INF = float("inf")


def solve(X: int):

    # 状態s, カウンターcnt
    s = 100
    cnt = 0
    while X > s:
        cnt += 1
        s = int(s*1.01)
    print(cnt)
    return


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:
x = int(input())
ans = 0
a = 100

while a < x :
    a += a//100
    ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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