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:
#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())
    ans = log(a//100)/log(1.01)

    print(ans)


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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(int(n+1))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

while money < X:
    money = round(money * 1.01)
    years = years + 1

print(years)

Submission status: Wrong Answer

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

while money < X:
    money = round(money * 1.01)
    years = years + 1

print(years)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

while money < X:
  money *= 1.01
  count += 1

print(count)

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(count)

Submission status: Wrong Answer

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

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

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

while True:
  if s>=x:
    break
  else:
    i=i+1
    s=s*1.01
    
print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import log, ceil

x = int(input())
print(ceil(log(x/100)/log(1.01)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

while a < x:
  a *= 1.01
  ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

import math

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input1 = input()
Ns = int(input1)

wallet=100
i=0

while wallet < Ns:
    wallet=wallet*1.01
    i=i+1

print(i)

Submission status: Wrong Answer

Solution code:
x = int(input())

monay = 100
count = 0

while True:
    monay = monay * 1.01
    count = count + 1

    if monay >= x:
        break
    else:
        continue

print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())

a=100
b=0
while a>x:
  a +=a//100
  b+=1
print(b)

Submission status: Wrong Answer

Solution code:
import math

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

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

if years > 0:
    message = "あなたの預金額は " + str(years) + " 年後に " + str(target_yen) + " 円以上になります。"
else:
    message = "あなたの預金額はすでに目標に達しています。"

print(message)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
X = int(input())
x1 = 100
r = 0.01
t = 0
while x1 <= X:
    R = int(x1 * r)
    x1 = R + x1
    t = t + 1
    #print(x1,R)
print(t)

Submission status: Wrong Answer

Solution code:
X = int(input())
x1 = 100
r = 0.01
t = 0
for x1 in range(x1, X):
    R = int(x1 * r)
    x1 = R + x1
    t = t + 1
    #print(x1,R)
print(t)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
a = int(input())
b = 100
x = 0
while (a > b):
    b += math.floor((a/100))
    x += 1
print(x)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

t = 0
m = 100

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

print(t)

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i = int(input())
p=100
count=0
while i > p:
  p = p*1.01
  count +=1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

    def bs(m):
        if 100 * ((1 + 0.01) ** m) >= x:
            return True
        else:
            return False
    
    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: Wrong Answer

Solution code:
n = int(input())

ans = 0

s = n - 100

for i in range(s):
 ans+=1

print(ans)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# Atcoder necoak answer
# https://atcoder.jp/contests/abc165/tasks/abc165_b

import sys

input_x = input()
x = int(input_x)

zandaka = 100
nen = 0

while zandaka < x:
    nen += 1
    zandaka = zandaka * 1.01

print(nen)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat May  2 18:36:23 2020

@author: ab
"""
import math
import sys
input = sys.stdin
output = sys.stdout
while True:
    lineElements = input.readline().rstrip("/n").split(" ")
    if lineElements[0] == '':
        break
    x = int(lineElements[0])/100
    approxResult = math.ceil(math.log(x,1.01))
    power = int(math.pow(1.01,approxResult))
    if power>x:
        approxResult = approxResult + 57
    print(str(approxResult)+"\n")
#output.flush()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

money = 100
year = 0

while (money <= x):
    money = int(money*1.01)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

while 1:
    a=x//100
    ans+=a
    i+=1
    if ans>=x:
        break


print(i)

Submission status: Wrong Answer

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

print(year)

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
X = int(input())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
deposit = 100
cnt = 0
for i in range(1,100**18):
    deposit = math.floor(deposit * 1.01)
    cnt += 1
    if deposit >= X:
        print(deposit)
        break
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
x = int(input())
base = 100
year = 0
while x <= base:
    year +=  1
    base = int(base * 1.01)
print(year)

Submission status: Wrong Answer

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

while money < a:
  money = money * 1.01
  year += 1

print(year)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
X=int(input())
origin=100
count=0
while(origin<X):
    origin+=int(origin*0.01)
    print(origin)
    count+=1
print(count)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


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

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
from collections import defaultdict

import sys
sys.setrecursionlimit(10**6)
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())
INF = float('inf')

def main():
    x=ii()
    ttl=100
    cnt=0
    while 2*ttl<x:
        ttl*=2
        cnt+=100
    while ttl<x:
        ttl=int(ttl*1.01)
        cnt+=1
    print(cnt)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import numpy as np
import math
x = int(input())
ans = 0
now = 100

for i in range(1,10**100):
    now = int(x*1.01)
    if now >= x:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

while now < X:
  X *= 1.01
  #X = int(X)
  X -= X%1
  year += 1

print(year)

Submission status: Wrong Answer

Solution code:
x=int(input())

ans = 100
for i in range(1,10**18+1):
    ans *= 1.01
    if ans >= x:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
x= int(input())

money= 100
i= 0
while money<x:
        money= money+1
        i += 1

print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
Money = 100
sum = 0
X = int(input())
for i in range(X):
    sum += 1
    Money += 1
    if Money>X:
        break
print(sum-1)

Submission status: Wrong Answer

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

while 1:
  a += a/100
  if a >= x:
    break
  y += 1

print(y)

Submission status: Wrong Answer

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

amt = 100
ans = 0
while amt <= X:
    amt *= 1.01
    amt = floor(amt)
    ans += 1

print(ans)

Submission status: Wrong Answer

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

while total < X:
  total += total * .01
  years += 1
print(years)

Submission status: Wrong Answer

Solution code:
X = int(input())

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

print(ans)

Submission status: Wrong Answer

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

if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# 初めて参照しました。
# ありがとう！

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

print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
original = 100
n =  0
while True:
    n+=1
    original = math.ceil(original * 1.01)
    if original >= X:
      break
print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())
m = 100
for n in range(5000):
  m = int(m*1.01)
  if m >= X:
    print(n)
    break

Submission status: Wrong Answer

Solution code:
X = int(input())
m = 100
for n in range(5000):
  m = int(m*1.01)
  if m > X:
    print(n)
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

count = 0
a = 100
while True:
  a *= 1.01
  a = int(a)
  if int(a) >= x:
    break
  else:
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
import math

def resolve():
    # O(logx)
    X = int(input())
    keika = 0
    yokin = 100

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

    print(keika)


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

Solution code:
x = int(input())

sm = 100
count = 0

while sm >= x:
    count += 1
    sm += int(0.01*sm)

print(count)

Submission status: Wrong Answer

Solution code:
#--B - 1%

X = int(input())

a = 100
j = 0
while (X > a):
  a += a/100
  j = j + 1

print(int(j))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat May  2 19:45:18 2020

@author: harsh
"""

#%%
import math
x=int(input())
rate=100
i=1
while(True):
    if(rate>=x):
        print(i)
        break
    else:
        rate=rate*1.01
        i+=1
#print((math.log(x/100))/(math.log(1.01)))

Submission status: Wrong Answer

Solution code:
#--B - 1%

X = int(input())

a = 100
j = 0
while (X > a):
  a += a/100.0
  j = j + 1

print(int(j))

Submission status: Wrong Answer

Solution code:
#--B - 1%

X = int(input())

a = 100

j = 0
while (X > a):
  a += a/100.0
  j = j + 1

print(j)

Submission status: Wrong Answer

Solution code:
X = int(input())
a, b = 100, 1
while 1:
    a += a * 0.01
    if a >= X:
        print(b)
        break
    b += 1

Submission status: Wrong Answer

Solution code:
X = int(input())
a, b = 100, 1
while 1:
    a += a * 0.01
    if a >= X:
        print(b)
        break
    b += 1
    print(a)

Submission status: Wrong Answer

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

#x = 100*(1.01**y)
#log10(x) = log10(100*(1.01**y))
#log10(x) = log10(100) + log10(1.01**y)
#log10(x) = 2 + y*log10(1.01)
#log10(x)-2 = y*log10(1.01)
#y = (log10(x)-2)//log10(1.01)

if x >= 1000:
  y = (math.log10(x)-1.75) // math.log10(1.01)
  print(int(y))
else:
  for i in range(1, 1001):
    if 100*(1.01**i) >= x:
      print(i)
      break

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
x = int(input())
o = 100
y = 0
i = 100
while i <= x:
    y += 1
    #print(y)
    i = o*1.01 ** y
    i = np.floor(i)
    o=i
    if i >=x:
        break
print(y)

Submission status: Wrong Answer

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

deposit = 100
count = 0
while x >= deposit:
    deposit += deposit*1//100
    count += 1
    
print(count)

Submission status: Wrong Answer

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

while mon < moku:
    mon = mon + mon * 1.01
    nen += 1

print(nen)

Submission status: Wrong Answer

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

while money <= x:
    year += 1
    money = int(money * 1.01)
    #print(year, end=" ")
    # print(money)

print(year)

Submission status: Wrong Answer

Solution code:
import math

K = int(input())
m = 100
while m < K:
    m += math.ceil(m*1.01)

 
print(m)

Submission status: Wrong Answer

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

cnt = 0
answer = 100

# こんなのやらなくてよかったク◯アホ
# 金額* 0.01 = 利子
# 福利計算式 FV = PV * (1 + R) ** n
# fv(futurevalue):将来価値 pv(presentvalue)(元金):現在価値  r:金利(年利)% n:経過年数
# fv = 100 (1 + 1)
# k = 100 * (1 + 1) ** n    k / 100
# x = x / 100
# print(math.log(2, x))



# for i in range(x):
#     # ans += 100 * 0.01
#     ans = ans // 100
#     if x <= ans:
#         answer = i + 1
#         break
# print(answer)

while answer <= x:
    cnt += 1
    answer += answer // 100

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

K = int(input())
m = 100
while m > K:
    m += math.ceil(m*1.01)

 
print(m)

Submission status: Wrong Answer

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

print(n)

Submission status: Wrong Answer

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

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:
import math
X = int(input())
 
def f(a):
  return math.log(a)/math.log(101)
 
print(math.ceil(f(X)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
a=int(input())
t=math.log(a/100,2)
print(int(t)+1)

Submission status: Wrong Answer

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

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:
		break
	n+=1
	m=math.floor(m*1.01)
 
print(int(n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
#x = 100*((1.01)**y)

y = (math.log10(x)-2) // math.log10(1.01)
#print(y)
for i in range(int(y), int(y)+10**5):
  if 100*1.01**i >= x:
    print(i)
    exit()

Submission status: Wrong Answer

Solution code:
from math import floor,ceil
X = input()
X = int(X)
cash = 100
count = 0
while cash <= X:
    cash*=1.01
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
X = int(input())
P = 100
I = 0
t = 0
while P <= X:
    I += 1
    P += I
    t += 1
print(t)

Submission status: Wrong Answer

Solution code:
from math import floor,ceil
X = input()
X = int(X)
cash = 100
count = 0
while cash < X:
    cash*=1.01
    count += 1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

print(100*X//(X-1)+X-201)

Submission status: Wrong Answer

Solution code:
from math import *
a = int(input())
count = 0
p = 100
while True:
  b = p * 0.01
  p = p + b
  count = count + 1
  if p >= a :
    break
print(count)

Submission status: Wrong Answer

Solution code:
def main():
    n = int(input())
    x = 100
    i = 0
    while x < n:
        x *= 1.01
        i += 1
    print(i)
    
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import math
default_money = 100
yokin = int(input())
count = 0

for i in range(10000000):
 math.floor(default_money)
 default_money = default_money * 1.01
 math.floor(default_money)
 count += 1
 if default_money >= yokin:
     break

print (count)

Submission status: Wrong Answer

Solution code:
x= int(input())

i= 1
while i:
    if 100+i<x:
        i += 1

    else:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
y = math.ceil(math.log(x/100, 1.01))
print(y)

Submission status: Wrong Answer

Solution code:
a=int(input())
t=100
sum=0
while(t<a):
	t=t*101/100
	sum=sum+1
print(sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
counter = 0
risi = 0
goukei = 100

while goukei < x:
    counter += 1
    goukei += math.floor(1 + counter * 0.01)
    print(goukei)

    
print(counter)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
a = int(input())
k = 100.0
cnt = 0
while True:
    k = math.floor(k+k*0.01)
    cnt += 1
    if a < k:
        break
    
print(cnt)

Submission status: Wrong Answer

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