Problem:


Score : 200 points

Problem Statement

Takahashi has a deposit of 100 yen (the currency of Japan) in AtCoder Bank.

The bank pays an annual interest rate of 1 % compounded annually. (A fraction of less than one yen is discarded.)

Assuming that nothing other than the interest affects Takahashi's balance, in how many years does the balance reach X yen or above for the first time?

Constraints

 101 \le X \le 10^{18} 

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X

Output

Print the number of years it takes for Takahashi's balance to reach X yen or above for the first time.

Sample Input 1

103

Sample Output 1

3

The balance after one year is 101 yen.

The balance after two years is 102 yen.

The balance after three years is 103 yen.

Thus, it takes three years for the balance to reach 103 yen or above.

Sample Input 2

1000000000000000000

Sample Output 2

3760

Sample Input 3

1333333333

Sample Output 3

1706



Sample input:
103


Sample output:
3

Submission status: Wrong Answer

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

print(year)

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

Solution code:
X = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
data = input()

x = int(data)

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
n = int(stdin.readline().rstrip())
a = 100
k = 0
while a < n:
    a *= 1.01
    k += 1
print(k)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
'''
.append(要素) リストに要素を追加
.extend(リスト) リストを連結する
.insert(場所,要素) 指定した場所に要素追加
del 配列名[場所]
-1で末尾で末尾から一つ前

sort()
sorted(reverse=true)

配列の初期化
配列名=[a]*n+[b]*m

Decimal()
'''

from sys import stdin
from itertools import accumulate, dropwhile, takewhile, groupby
import bisect
import copy
import math
from functools import reduce
from operator import mul
from collections import Counter
import itertools
import fractions

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

yokin = 100
i = 0
while yokin <=X:

    yokin = (yokin*1.01)//1
    i += 1
print(i-1)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

print(count)

Submission status: Wrong Answer

Solution code:
import sys


try:
    sys.stdin = open(sys.path[0] + '\\input.txt', 'r')
    sys.stdout = open(sys.path[0] + '\\output.txt', 'w')
except FileNotFoundError:
    pass


x = int(input())

n = 100
t = 0
while n <= x:
    n += (0.01 * n)
    n = int(n)
    t += 1
    # print(n, t)

print(t)

Submission status: Wrong Answer

Solution code:
import math

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    x = int(input())
    c = 100
    count = 0
    while not c >= x:
        c += c * 0.01
        count += 1
    print(count)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
x = int(input())

ans = 100
cnt = 0
while(True):
  ans += round(ans*0.01)
  cnt += 1
  if ans >= x:
    print(cnt)
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = float(input())

y = 0
z = 100
while True:
  y += 1
  z = z*1.01
  if z >= X:
    print(y)
    break

Submission status: Wrong Answer

Solution code:
def main():
    X = int(input())
    yen = 100
    ans = 0
    while yen >= X:
        yen = int(yen ** (1.01))
        ans += 1
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
i = 100
while i < n:
  i += math.floor(i*1.01)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input()) 

cnt = 0
res = 100
while res <= x:
    res = res * 1.01
    cnt += 1

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

num = 100
count = 0
while x == num:
  num = num + (num // 100)
  count += 1

print(count)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
bal = 100

i = 0
while (bal < X):
    bal = bal + math.floor(bal * 0.01)

print(i)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

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

Submission status: Wrong Answer

Solution code:
from math import sqrt,ceil

# map(int,input().split())

n=int(input())

s=100
c=0
while(s<=n):
    p=s//100
    s=s+p
    c+=1
print(c)

Submission status: Wrong Answer

Solution code:
from math import factorial as fact
import math
import sys
import itertools
import numpy as np
from collections import Counter
import datetime


#入力:N(int:整数)
def input1():
	return int(input())

#入力:N,M(int:整数)
def input2():
	return map(int,input().split())

#入力:[n1,n2,...nk](int:整数配列)
def input_array():
	return list(map(int,input().split()))

def keta(N):
	return len(str(N))


def input_daytime(input_time):
	time,distance=input_time.split()
	t=time.split(":")
	se=str(t[-1]).split(".")
	dt1 = datetime.timedelta(hours=int(t[0]),minutes=int(t[1]),seconds=int(se[0]),milliseconds=int(se[1]))
	return dt1

def combinations(n,r):
	return list(itertools.combinations(range(n),r))



def all_sets(num_list):
	subsets=[]
	for i in range(2,len(num_list) + 1):
		for c in combinations(num_list, i):
			subsets.append(c) 
	return subsets

#公約数の列挙
def ch(x1):
	cf=[]
	for i in range(2,math.sqrt(x1)+1):
		if x1 % i==0:
			cf.append(i)
	return cf

def CountOneRoots(x,y):
	#x:縦，y:横
	return fact(x+y)/fact(x)/fact(y)

# 素因数分解
def factorization(n):
	tmp=n
	count=0
	for i in range(2,int(n**0.5)+2):
		if tmp%i==0:
			cnt=0
			while tmp%i==0:
				cnt+=1
				tmp//=i
			count+=1
	if tmp!=1:
		count+=1

	return count
			




x = input1()
result=100
for i in range(10**1000000):
	result=result*1.01
	if result>x:
		print(i+1)
		break

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, gcd
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

X = INT()

a = 100
ans = 0

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

print(ans)

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math
goal = int(input())
cnt = 0
money = 100
while goal >= money:
    money = math.floor(money * 1.01)
    cnt +=1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
y = 101
ans = 1
while y < x:
  y *= 101
  x *= 100
  ans += 1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

def readInt():
	return int(input())
 
def readInts():
	return list(map(int, input().split()))
 
def readChars():
	return input().split()

x = readInt()
m = 100
n = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import math
from collections import deque
import heapq
MAX_INT = int(10e10)
MIN_INT = -MAX_INT
mod = 1000000007
sys.setrecursionlimit(1000000)
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

N = I()

n = 100
ans = 0
while n <= N:
  n += int(n*0.01)
  ans += 1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

i = 0
while (bal < X):
    bal = bal + bal * 0.01

print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

X = int(readline())

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

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
i = 100
while i < n:
  i += math.ceil(i*1.01)

Submission status: Wrong Answer

Solution code:
x = int(input())
y = 101
ans = 1
while y < x:
  y *= 101
  x *= 100
  ++ans
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

m = 100
ans = 0
while True:
    m *= 1.01
    ans += 1
    if m >= X:
        break
print(ans)

Submission status: Wrong Answer

Solution code:
a =int(input())
cur = 100
n = 0
while cur<a-1e-5:
  cur = cur*1.01
  n+=1
print(n)

Submission status: Wrong Answer

Solution code:
x = int(input())

tmp = 100
for i in range(10 ** 20):
    if tmp >= x:
        print(i)
        exit()
    tmp *= 1.01

Submission status: Wrong Answer

Solution code:
x=int(input())

m=100

i=0
while(1):
  m=m*1.01
  i+=1
  if m>=x:
    print(i)
    break

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import deque, Counter, defaultdict
from itertools import chain, combinations
import json
# import numpy as np
import bisect
import sys
import math
import bisect
from functools import lru_cache

sys.setrecursionlimit(10 ** 8)

M = 10 ** 9 + 7
INF = 10 ** 17


def main():
    N = int(input())
    # A = [int(a) for a in input().split()]
    c = 1
    d = 100
    while True:
        d = int(d * 1.01)
        if d > N:
            print(c)
            return
        c += 1


if __name__ == "__main__":
    main()

Submission status: Time Limit Exceeded

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

print(ans)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
a=int(input())
i=100
f=0
while i<a:
  if a>100000:
    a=a/100000
    i=i//100000
  i=int(i*1.01)
  f=f+1
print(f)

Submission status: Time Limit Exceeded

Solution code:
a=int(input())
i=100
f=0
while i<a:
  if a>100000:
    a=a/100000
    i=i/100000
  i=int(i*1.01)
  f=f+1
print(f)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
x=int (input())

i=0
c=100
d=100

while x >= d:
  c=int(c//100)
  d=d+c
  i=i+1



print(i)

Submission status: Time Limit Exceeded

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


for i in range(10**18):
 #credit = int(credit * 1.01)
  credit = credit // 100
  if(x <= credit):
    break
print(year)

Submission status: Time Limit Exceeded

Solution code:
import math
from decimal import Decimal

X = int(input())
now = 100
year = 0

while True:
    if now >= X:
        break
    now_bad = int(now * Decimal(1.01))
    year += 1

print(year)

Submission status: Time Limit Exceeded

Solution code:
before = 100#預金
S = int(input())#入力
cn = 0#カウンタ
after = 0#一年後の預金

while after < S:
    after = (before * 1.01)
    cn = cn + 1 

    
print(cn)

Submission status: Time Limit Exceeded

Solution code:
x=int(input())

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

Submission status: Time Limit Exceeded

Solution code:
k=int(input())
num=100
ans=0
while k!=num:
    num=num*101//100
    ans+=1
print(ans)

Submission status: Time Limit Exceeded

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

import math
count = 0
while True:
    if m >= x:
        print(count)
        break
    x = math.floor(m * 1.01)
    count += 1

Submission status: Time Limit Exceeded

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

import math
count = 0
while True:
    if m >= x:
        print(count)
        break
    x = math.floor(100 * 1.01)
    count += 1

Submission status: Time Limit Exceeded

Solution code:

X = int(input())
now_money=100
i = 0
t= 100

while X >= now_money:
    t += t
    i += 1
print(i)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
X = int(input())

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
x = int(input())
for n in 10 ** 10 ** 10:
  if x <= (101 ** n) / (100 ** (n - 1)):
    print(n)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
x = int(input())

money = 100
year = 0

while(True):
  year += 1
  money += money*0.01//1
  if money == x:
    print(year)
    break

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
x = int(input())

deposit = 100
count = 0

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

print(count)

Submission status: Time Limit Exceeded

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

while temp < x:
    temp *= 0.01

print(temp)

Submission status: Time Limit Exceeded

Solution code:
a = int(input())
p = 100
cnt=0
while(p!=a):
  cnt+=1
print(cnt)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
dep = 100
cnt = 0
while dep != n:
  t = dep // 100
  dep += t
  cnt += 1
print(cnt)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

print(ans)

Submission status: Time Limit Exceeded

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

while mon < moku:
    mon = mon // 100
    nen += 1

print(nen)

Submission status: Time Limit Exceeded

Solution code:
import math

x = int(input())
m = 100
count = 1

while True:
    depo = math.floor(m*1.01)
    if depo >= x:
        print(count)
        break
    count += 1

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
# -*- coding: utf-8 -*-
X = int(input())
n = 1
Y = 100 ** (n-1)
while Y < X:
    n += 1
else:
    print(n)

Submission status: Time Limit Exceeded

Solution code:
from sys import stdin

X = int(stdin.readline())
Y = 100

count = 1
while True:
  Y += Y*0.01
  if Y >= X:
    print(count)
  else:
    count += 1

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
X = int(input())
Y = 100
i = 0
while 1:
  if X == Y:
    print(i)
    break
  Y += Y // 100
  i += 1

Submission status: Time Limit Exceeded

Solution code:

A = int(input())
N = 100
count = 0
while(A>N):
  100*1.01
  count+=1

print(count)

Submission status: Time Limit Exceeded

Solution code:
import math

yen = int(input())

# keta = int(math.log10(yen))



for x in range(100, 10**18):
  if x >= ((yen -2)/math.log10(1.01)) -1:
        print(x)

Submission status: Time Limit Exceeded

Solution code:
import math
X = int(input())
ans = 1
n = math.floor(100 * (1.01 ** ans))

while n < X:
  ans += 1
print(ans)

Submission status: Time Limit Exceeded

Solution code:
import math
X=float(input())
a=100
c=0
while(X!=a):
    a=a*1.01-((a*1.01)%1)
    c+=1
print(c)

Submission status: Time Limit Exceeded

Solution code:
p=int(input())
k=100
o=0
j=0
while p>k:
    k1=k+(k*101)//10000
    o+=1
print(o)

Submission status: Time Limit Exceeded

Solution code:
import math

yen = int(input())

keta = int(math.log10(yen))

for x in range(10**(keta-1), 10**18):
  if yen == int( x * 1.01):
        print(x -100 + 1)

Submission status: Time Limit Exceeded

Solution code:
target = int(input())
 
year = 0
money = 100
while money < target:
  year += 1
  money *= 1.01
  if "." in str(money):
    money = str(money)
    money = money.split(".")
    money = int(money[0])
print(year)

Submission status: Time Limit Exceeded

Solution code:
X = input()
ans = 1
n = round(100 * (1.01 ** ans))

while n < int(X):
  ans += 1
print(ans)

Submission status: Time Limit Exceeded

Solution code:

yen = int(input())
for x in range(100, 10**18):
  if yen == int( x * 1.01):
        print(x -100 + 1)

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
i=1 
j=100 
while(True):
    if (j*101)//100==n:
        print(i)
        break
    else:
        j=(j*101)//100
        i+=1

Submission status: Time Limit Exceeded

Solution code:
x = int(input())
import sys
sys.setrecursionlimit(4000)

def f(n):
  if n == 1:
    return 101
  else:
    return int(f(n-1)*1.01)
n = 1
while f(n) < x:
  n += 1
else:
  print(n)

Submission status: Time Limit Exceeded

Solution code:
N=int(input())
v=100
count=0
while True:
  if N<v:
    break
  count+=1
  v*=1.01//1

Submission status: Time Limit Exceeded

Solution code:
N=int(input())
v=100
count=0
while True:
  if N<v:
    break
  count+=1
  v*1.01//1
  
print(count)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
import sys
sys.setrecursionlimit(10 ** 9)

x = int(input())

def per(year):
  if year == 0:
    return 100
  else:
    return int(per(year-1) * 1.01)
  
year = 0
while True:
  if per(year) >= x:
    print(year)
    break
  else:
    year += 1

Submission status: Time Limit Exceeded

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

Submission status: Accepted

Solution code:
X = int(input())
money = 100
y = 0
while True:
  money = 101 * money // 100
#  print(money)
  y += 1
  if money >= X:
    print(y)
    break

Submission status: Accepted

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

while x > money:
    money += money//100
    cnt += 1
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def answer(x: int) -> int:
    years = 0
    deposit = 100
    while deposit < x:
        deposit += deposit // 100
        years += 1
    return years


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x=int(input())

m=100
i=0
while 1:
    m += m//100
    i+=1
    if m>=x:
        break

print(i)

Submission status: Accepted

Solution code:
x=int(input())

yo=100
n=0

while x>yo:
    yo+=yo//100
    n+=1
print(n)

Submission status: Accepted

Solution code:
X = int(input())
G = 100
after_year = 0

while X > G:
    G += G // 100
    after_year += 1

print(after_year)

Submission status: Accepted

Solution code:
def N():
    return int(input())
def L():
    return list(map(int,input().split()))
def NL(n):
    return [list(map(int,input().split())) for i in range(n)]
mod = pow(10,9)+7
#import numpy
y = 100
x = N()
cnt = 0
while(1):
    cnt += 1
    y = (y*101)//100
    #print(y)
    if y >= x:
        print(cnt)
        break

Submission status: Accepted

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

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())
a = 100
i = 0
while(X>a):
    a = a*101//100
    i += 1
print(i)

Submission status: Accepted

Solution code:
X = int(input())

count = 0
n = 100
while n < X:
    n += n//100
    count += 1
else:
    print(count)

Submission status: Accepted

Solution code:
from decimal import Decimal
X = int(input())
n = 0
money = 100
while True:
    money += int(money * Decimal("0.01"))
    #print(money)
    n += 1
    if money >= X:
        print(n)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal


def com_interest(n: int) -> int:
    saving = 100
    interest_per = 0.01
    years = 0

    while True:
        years += 1
        saving = int(saving * Decimal('1.01'))
        if saving >= n:
            break
    return years


print(com_interest(int(input())))

Submission status: Accepted

Solution code:
X = int(input())
ans = 0
money = 100 #初期金額

while money < X:
    money += money//100
    ans += 1
    
print(ans)

Submission status: Accepted

Solution code:
from decimal import Decimal


def com_interest(n: int) -> int:
    saving = Decimal('100')
    interest_per = 0.01
    years = 0

    while True:
        years += 1
        saving = int(saving * Decimal('1.01'))
        if saving >= n:
            break
    return years


print(com_interest(int(input())))

Submission status: Accepted

Solution code:
import math

X = int(input())
ans = 0
money = 100 #初期金額

while money < X:
    money += money//100
    ans += 1
    
print(ans)

Submission status: Accepted

Solution code:
from math import floor
from fractions import Fraction
from decimal import Decimal


def com_interest(n: int) -> int:
    saving = Decimal(100)
    interest_per = 0.01
    years = 0

    while True:
        years += 1
        b = Decimal('1.01')
        saving = int(saving) * b
        if saving >= n:
            break
    return years


print(com_interest(int(input())))

Submission status: Accepted

Solution code:
X = int(input())

deposit = 100
y_later = 0

while deposit < X:
    y_later += 1
    deposit += deposit // 100

print(y_later)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()
import math

X = int(input())

ans = False
money = 100
year = 0
while money < X:
    money += money // 100
    year += 1

print(year)

Submission status: Accepted

Solution code:
def com_interest(n: int) -> int:
    saving = 100
    interest_per = 0.01
    years = 0

    while True:
        years += 1
        saving = (saving * 101) // 100
        if saving >= n:
            break
    return years


print(com_interest(int(input())))

Submission status: Accepted

Solution code:
X=int(input())
def ans165(X:int):
    cash=100
    count=0
    while True:
        # cash=int(cash*1.01)
        cash+=cash//100#元本に１パーセントの利子をつけ小数点以下切り捨て
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Accepted

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

while a < x:
    a = (a * 101)//100
    year += 1
print(year)

Submission status: Accepted

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

print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

count = 0
temp = 100
ans = 0
while True:
    temp+=temp//100
    count += 1
    ans  = temp
    if ans>=X:
        break
print(count)

Submission status: Accepted

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

while ASSET < X:
  tmp = str(ASSET)
  ASSET += int(tmp[:len(tmp)-2])
  cnt += 1

print(cnt)

Submission status: Accepted

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

while ASSET < X:
  ASSET += ASSET // 100
  cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
import math
 
X=int(input())
def ans165(X:int):
    cash=100#当初の預金額
    count=0
    while True:
        # cash=int(cash*1.01) #元本に１パーセントの利子をつけ小数点以下切り捨て # WA
        # cash = cash * 1.01 * 100 // 100 # 1%の利子をつけて100倍した後に100で割って整数部のみ取り出す # WA
        # cash += cash * 0.01 * 100 // 100 # 1%の利子を計算して100倍した後に100で割って整数部のみ取り出す # WA
        # cash += cash // 100 # 元本に100で割った整数部を足す # AC
        # cash += math.floor(cash * 0.01) # WA
        # cash += math.floor(cash / 100) # WA
        cash += math.floor(cash // 100) # WA
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Accepted

Solution code:
X=int(input())
def ans165(X:int):
    cash=100#当初の預金額
    count=0
    while True:
        # cash=int(cash*1.01) #元本に１パーセントの利子をつけ小数点以下切り捨て
        cash += cash // 100 # 元本に100で割った整数部を足す
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Accepted

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

print(ans)