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())
i = 0
y = 100

while y < X:
    y += int(y * 0.01)
    i += 1

print(i)

Submission status: Wrong Answer

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

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

print(i)

Submission status: Wrong Answer

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

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

print(i)

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.read
readlines = sys.stdin.readlines
from math import floor
def main():
    x = int(input())
    n = 100
    r = 0
    while n < x:
        n = floor(n * 1.01)
        r += 1
    print(r)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# ABC165
# B 1%
K = int(input())
x = 100
i = 1
ct = 1
for i in range(K):
    x = x * 1.01
    x = int(x)
    if x >= K:
        print(i+1)
        exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# ABC165
# B 1%
K = int(input())
ct = 0
x = 100
while x <= K:
    x = int(x * 1.01)
    ct += 1

print(ct)

Submission status: Wrong Answer

Solution code:
x = int(input())

money = 100.0
year = 1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
def main():
    import sys

    input = sys.stdin.readline

    X = int(input())

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
def main():
    import sys

    input = sys.stdin.readline

    X = int(input())

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
def main():
    import sys

    input = sys.stdin.readline

    X = int(input())

    cnt = 0
    res = 100
    while cnt <= 10 ** 8:
        res = int(res * 1.01)
        cnt += 1
        if res >= X:
            print(cnt)
            break


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(count)

Submission status: Wrong Answer

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

while X > A:
    cnt += 1
    A *= 1.01
    A = int(A // 1)
print(cnt)

Submission status: Wrong Answer

Solution code:
x=int(input())

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

Submission status: Wrong Answer

Solution code:
x=int(input())

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

Submission status: Wrong Answer

Solution code:
x=int(input())

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

Submission status: Wrong Answer

Solution code:
x=int(input())

c=100
a=0
while c<x:
  c=c+c/100
  #c=int(c)
  a+=1
print(a)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
money = 100
count = 1
while True:
  money = math.floor(money * 1.01)
  if money >= x:
    break
  count += 1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
from decimal import Decimal
a = Decimal(input())
o = 100
c = 0 
while True:
  o = math.floor(o * 1.01)
  c = c + 1
  if o >= a:
    print(c)
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
from decimal import *
x = Decimal(int(input()))
money = Decimal(100)
for y in range(1, 10**18):
    money = math.floor(Decimal(1.01) * Decimal(money))
    if money >= x:
        print(y)
        break

Submission status: Wrong Answer

Solution code:
import math
from decimal import *
x = Decimal(int(input()))
money = Decimal(100)
for y in range(1, 10**16):
    money = math.floor(Decimal(1.01) * Decimal(money))
    if money >= x:
        print(y)
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
score = int(input())
answer = 100
year = 0
while answer < score:
    answer = math.floor(answer*101/100)
    year += 1
print(year)

Submission status: Wrong Answer

Solution code:
score = int(input())
answer = 100
year = 0
while answer < score:
    answer = int(answer*101/100)
    year += 1
print(year)

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())
ans, money = 0, 100
while money < x:
    money = money * 1.01 // 1
    ans += 1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())
y = 0
x = 100

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())
y = 0
x = 100

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

print(y)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
import math
from math import gcd
INF = float("inf")

import sys
input=sys.stdin.readline
import itertools

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

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
import math
from math import gcd
INF = float("inf")

import sys
input=sys.stdin.readline
import itertools

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





if __name__=="__main__":
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

for i in range(1, 10**18+1):
    money *= 1.01
    money = math.floor(money)
    if money >= x:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
a = 100
for i in range(1, 40000):
    a += math.floor(a * 0.01)
    if a >= x:
        print(i)
        exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    X = float(input())
    money = 100
    ans = 0
    while True:
        money = int(money * 1.01)
        ans += 1
        if money >= X:
            print(ans)
            return
 
 
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    X = float(input())
    money = 100
    ans = 0
    while True:
        money = int(money * 1.01)
        ans += 1
        if money >= X:
            print(ans)
            return


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

x=int(input())
y=100
i=0
while True:
    y += math.floor(y/100)
    i+=1
    if y>=x:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
import math

x=int(input())
y=100
i=0
while True:
    y=math.floor(y*1.01)
    i+=1
    if y>=x:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

x = 100
cnt = 0

while x < X:
    x += math.floor(x/100)
    cnt += 1

print(cnt)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
s=100.
i=0
while 1:
    s=math.floor(s*1.01)
    i+=1
    if s>=X:
        break

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(10000000)
import math
X = int(input())
x = 100
ans = 0
while x < X:
    x += math.floor(x / 100)
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(10000000)
import math
X = int(input())
x = 100
ans = 0
while x < X:
    x = math.floor(x * 101 / 100)
    ans += 1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

print(ans)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())

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

print(ans)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

print(ans)

Submission status: Wrong Answer

Solution code:
from decimal import Decimal

x = int(input())

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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal

x = int(input())

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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal

x = int(input())

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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal

x = int(input())

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

Submission status: Wrong Answer

Solution code:
#from math import floor

x = int(input())

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

Submission status: Wrong Answer

Solution code:
from math import floor

x = int(input())

t = 100
n = 0
while t < x:
  n += 1
  t = floor(t * 1.01)
print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n= int(input())
eq=100
eq2=0
cont=0
while eq2 < n:
    eq=eq+(eq*1)/100
    eq2= eq
    cont+=1
print(cont)

Submission status: Wrong Answer

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

while X > money:
    year += 1
    money += (money * 101) // 100

print(year)

Submission status: Wrong Answer

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

while X > money:
    year += 1
    money += money * 101 // 100

print(year)

Submission status: Wrong Answer

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

while X > money:
    year += 1
    money += int(money * 0.01)

print(year)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import floor

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

while amount < x:
    amount += floor(amount / 100)
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
from math import floor

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

while amount < x:
    amount += floor(amount * 0.01)
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
from math import floor

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

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

print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
import math
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:
import math
x = int(input())
money = 100
cnt = 0

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

print(cnt)

Submission status: Wrong Answer

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

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

print(cnt)

Submission status: Wrong Answer

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

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

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(count)

Submission status: Wrong Answer

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

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

print(count)

Submission status: Wrong Answer

Solution code:
import math
up_rate = 1.01
money = 100

TARGET = int(input())

counter = 0
while TARGET > money:
    money = math.floor(money * up_rate)
    counter += 1
    # print(counter, money)
    
print(counter)

Submission status: Wrong Answer

Solution code:
import math
up_rate = 1.01
money = 100

TARGET = int(input())

counter = 0
while TARGET >= money:
    money = math.floor(money * up_rate)
    counter += 1
    # print(counter, money)
    if TARGET <= money:
        break
    
print(counter)

Submission status: Wrong Answer

Solution code:
up_rate = 1.01
money = 100

TARGET = int(input())

counter = 0
while TARGET >= money:
    money = int(money * up_rate)
    counter += 1
    # print(counter, money)
    if TARGET <= money:
        break
    
print(counter)

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.readline
import time
import math
import itertools as it
def inp():
    return int(input())
def inpl():
    return list(map(int, input().split()))
start_time = time.perf_counter()
# ------------------------------

X = inp()
yen = 100
for i in range(10**4):
    yen += (yen // 100)
    if yen >= X:
        print(i)
        break

# -----------------------------
end_time = time.perf_counter()
print('time:', end_time-start_time, file=sys.stderr)

Submission status: Wrong Answer

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

import math
count = 0
while m < x:
    m += m / 100
    count += 1

print(count)

Submission status: Wrong Answer

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

count = 0
while m < x:
    m += int(m / 100)
    count += 1

print(count)

Submission status: Wrong Answer

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

import math
count = 0
while m < x:
    m += math.floor(m / 100)
    count += 1

print(count)

Submission status: Wrong Answer

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

import math
count = 0
while m >= x:
    m += math.floor(m / 100)
    count += 1

print(count)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

def main():

    X = int(input())

    num = 100
    ans = 0

    while num < X:
        num = num + int(num * 0.01)
        ans +=1

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import floor
X = int(input())
deposit, year = 100, 0
while deposit < X:
  year += 1
  deposit += floor(deposit * 0.01)
print(year)

Submission status: Wrong Answer

Solution code:
# abc165_b.py
# https://atcoder.jp/contests/abc165/tasks/abc165_b

# B - 1% /
# 実行時間制限: 2 sec / メモリ制限: 1024 MB
# 配点 : 200点

# 問題文
# 高橋くんはAtCoder銀行に 100円を預けています。
# AtCoder銀行では、毎年預金額の 1% の利子がつきます(複利、小数点以下切り捨て)。
# 利子以外の要因で預金額が変化することはないと仮定したとき、高橋くんの預金額が初めて X円以上になるのは何年後でしょうか。

# 制約
#     101≤X≤1018
#     入力はすべて整数

# 入力
# 入力は以下の形式で標準入力から与えられる。
# X

# 出力
# 高橋くんの預金額が初めて X円以上になるのは何年後かを出力せよ。

# 入力例 1
# 103

# 出力例 1
# 3

#     1年後の預金額は 101円です。
#     2年後の預金額は 102円です。
#     3年後の預金額は 103円です。
# したがって、預金額が初めて 103円以上になるのは 3年後です。

# 入力例 2
# 1000000000000000000

# 出力例 2
# 3760

# 入力例 3
# 1333333333

# 出力例 3
# 1706


global FLAG_LOG
FLAG_LOG = False


def log(value):
    # FLAG_LOG = True
    # FLAG_LOG = False
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    # S = lines[0]
    X = int(lines[0])
    # N, M = list(map(int, lines[0].split()))
    # values = list(map(int, lines[1].split()))
    # values = list(map(int, lines[2].split()))
    # values = list()
    # for i in range(N):
    #     values.append(int(lines[i]))
    # valueses = list()
    # for i in range(N):
    #     valueses.append(list(map(int, lines[i+1].split())))

    result = 0
    remain = 100

    while True:
        remain += int(remain/100)
        result += 1
        if remain >= X:
            return [result]


# 引数を取得
def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines


# テストデータ
def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['103']
        lines_export = [3]
    if pattern == 2:
        lines_input = ['1000000000000000000']
        lines_export = [3760]
    if pattern == 3:
        lines_input = ['1333333333']
        lines_export = [1706]
    return lines_input, lines_export


# 動作モード判別
def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode


# 主処理
def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    # if mode > 0:
    #     print(f'lines_input=[{lines_input}]')
    #     print(f'lines_export=[{lines_export}]')
    #     print(f'lines_result=[{lines_result}]')
    #     if lines_result == lines_export:
    #         print('OK')
    #     else:
    #         print('NG')
    # finished = time.time()
    # duration = finished - started
    # print(f'duration=[{duration}]')


# 起動処理
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
n, d = 0, 100
while d < x:
    d = int(d*(1 + 0.01))
    n += 1
print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

x = int(input())

balance = 100
years = 0

while True:
    years += 1
    balance += math.floor(balance*0.01)
    if balance >= x:
        print(years)
        exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 100
total=0
while i>=n:
  i = i*0.01
  i = i//1
  total +=1
print(total)

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 100
while i>=n:
  i = i*0.01
  i = i//1

Submission status: Wrong Answer

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

if not ( 101 <= X <= 10**18 ): sys.exit()

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

print(count)

Submission status: Wrong Answer

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

if not ( 101 <= X <= 10**18 ): sys.exit()

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

print(count)

Submission status: Wrong Answer

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

if not ( 101 <= X <= 10**18 ): sys.exit()

base = 100
count = 0
while (1):
    base = int(base + (base * 0.01))
    count += 1
    if base >= X:
        print(count)
        sys.exit()

Submission status: Wrong Answer

Solution code:
from math import floor

x = int(input())
m = 100
for i in range(x):
    m = floor(m * 1.01)
    if m >= x:
        print(i + 1)
        exit()

Submission status: Wrong Answer

Solution code:
X = int(input())

# solve
c = 100
y = 0

import math

while c < X:
    # overflow?
    # c = c + math.floor(c * 0.01)

    c += math.floor(c/100)
    y += 1

print(y)

Submission status: Wrong Answer

Solution code:
X = int(input())

# solve
c = 100
y = 0

import math

while c < X:
    c = c + math.floor(c * 0.01)
    y += 1

print(y)

Submission status: Wrong Answer

Solution code:
X = int(input())

# solve
c = 100
y = 0

while c < X:
    c = c + c * 0.01
    y += 1

print(y)

Submission status: Wrong Answer

Solution code:

x = int(input())

count = 0
a = 100
while a <= x:
    a += a//100
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:

x = int(input())

count = 0
a = 100
while a <= x:
    count += 1
    a += a//100


print(count)

Submission status: Wrong Answer

Solution code:

x = int(input())

count = 0
a = 100
while a <= x:
    count += 1
    a = int(a*1.01)
#    a += a//100


print(count)

Submission status: Wrong Answer

Solution code:

x = int(input())

count = 0
a = 100
while a < x:
    count += 1
    a = int(a*1.01)
#    a += a//100


print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

ans = 0
money = 100
for i in range(1, 10**18):
    money = money * 1.01 // 1
    if money >= X:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

Solution code:
X = int(input())

ans = 0
money = 100
for i in range(10**18):
    money = money * 1.01 // 1
    if money >= X:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

Solution code:
from math import floor

X = int(input())

dep = 100
count = 0

while X > dep:
    dep = floor(dep * 1.01)
    count += 1

print(count)