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: Runtime Error

Solution code:
import sys
import math
def Ii():return int(sys.stdin.buffer.readline())
def Mi():return map(int,sys.stdin.buffer.readline().split())
def Li():return list(map(int,sys.stdin.buffer.readline().split()))

x = Ii()
ans = (math.log10(x) - 2)math.log10(1.01)
k = 100
while x > k:
  tax = k//100
  k += tax  
  ans += 1
  
print(ans)

Submission status: Runtime Error

Solution code:
K = int(input())
A, B = map(int, input().split())
XK = list(x * K for x in range(1, 1000//K + 1))
for i in XK:
    if (A <= i) & (i <= B):
        print('OK')
        break
else:
    print('NG')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = input()
ans = 0
y = x

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

Submission status: Runtime Error

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

print(int(i)

Submission status: Runtime Error

Solution code:
x=int(input())
a=100
while x>int(a*1.01):
    a=int(a*1.01)

print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

// Loops
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define _rrep(i, n) rrepi(i, n, 0)
#define rrepi(i, a, b) for (int i = int(a) - 1; i >= int(b); --i)

#define rep(...) _overload3(__VA_ARGS__, repi, _rep, )(__VA_ARGS__)
#define rrep(...) _overload3(__VA_ARGS__, rrepi, _rrep, )(__VA_ARGS__)
#define each(xi, x) for (auto &&xi : x)
// Note: we can use rep(i,N) or rep(i,from,to)

// typedef
template <class T> using vec = vector<T>;
using ll = long long;
using vi = vec<ll>;
using vvi = vec<vi>;
using vvvi = vec<vvi>;
using pii = pair<ll, ll>;

// Constants

// Shorter repr for frequently used terms
#define pb push_back
#define mp make_pair

// Algorithms
#define all(x) (x).begin(), (x).end()
#define uniq(v) v.erase(unique(all(v)), v.end())
#define perm(c)                                                                \
  sort(all(c));                                                                \
  for (bool c##p = 1; c##p; c##p = next_permutation(all(c)))

template <class T> pair<T, size_t> max(vector<T> &x) {
  auto it = max_element(all(x));
  return mp(*it, it - x.begin());
}
template <class T> pair<T, size_t> min(vector<T> &x) {
  auto it = min_element(all(x));
  return mp(*it, it - x.begin());
}

template <class T> inline bool chmax(T &maxval, const T &newval) {
  if (maxval < newval) {
    maxval = newval;
    return 1;
  }
  return 0;
}
template <class T> inline bool chmin(T &minval, const T &newval) {
  if (minval > newval) {
    minval = newval;
    return 1;
  }
  return 0;
}

// Utilities
// Grid world utilities
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
#define inside(H, W, y, x) 0 <= (x) && (x) < (W) && 0 <= (y) && (y) < (H)

// Debug
#ifdef LOCAL
#include "dump.hpp"
#define debug(x) cerr << #x << ": " << x << '\n'
#else
#define dump(...)
#define debug(x)
#endif

// Yes or No
void yesno(bool ok, string yes = "Yes", string no = "No") {
  cout << (ok ? yes : no) << endl;
}

// Paste snippets here!!

//

void solve(long long X) {
  ll yen = 100;
  ll ret = 0;
  while(yen<X){
    yen += yen / 100LL;
    ret++;
  }
  cout << ret << endl;
}

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false); // Magic for faster cin
  cout.precision(12);
  long long X;
  std::cin >> X;
  solve(X);
  return 0;
}

Submission status: Runtime Error

Solution code:
import math
m = 100

X = int(input())
count = 0
while True:
  s = math.floor(m * 0.01)
  m += s
  count += 1
  if m == X:
    print(count)
    break

Submission status: Runtime Error

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

print(count)

Submission status: Runtime Error

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

while money < x:
    money += money // 100;
    money = math.floor(money)
    year += 1
    
print(year)

Submission status: Runtime Error

Solution code:
n=int(input())
 
for i in range(10**18):
 a=(int(１００*(1+0.01)))**i
 if a>＝n:
  print(i+1)
  exit()

Submission status: Runtime Error

Solution code:
n=int(input())
 
for i in range(10**18):
 a=(int(n*(1+0.01)))**（i-1）
 if a>n:
  print(i+１)
  exit()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
using namespace std;
int main(){
    long long x;
    cin >> x,
    long long p, yr = 0;
    while p < x{
        p += p / 100
        yr ++
    }
    cout << yr << endl;
    return 0
}

Submission status: Runtime Error

Solution code:
req = int(input())
count = 0
p = 100
while P < req:
  p += int(p/100)
  count +=1
  
print(count)

Submission status: Runtime Error

Solution code:
req = int(input())
count = 0
while P < req:
  p += int(P/100)
  count +=1
  
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():
  x = int(input())
  
  total = 100
  year = 0
  
  while total < x:
    total = math.floor(total * 1.01)
    year += 1
  
  print(year)
  
  
  
main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from decimal import Decimal
import math 
X = int(input())
yen = 100
n = 1
while yen < X:
    yen = decimal(math.floor(yen*1.01*n))
    if X <= yen:
        print(n)
    n = n + 1

Submission status: Runtime Error

Solution code:
from decimal import Decimal
import math 
X = int(input())
yen = 100
n = 1
while True:
    yen = decimal(math.floor(yen*1.01*n))
    if X <= yen:
        print(n)
        break
    n = n + 1

Submission status: Runtime Error

Solution code:
from decimal import Decimal
from floor import math 
X = int(input())
yen = 100
n = 1
while True:
    yen = decimal(math.floor(yen*1.01*n))
    if X <= yen:
        print(n)
        break
    n = n + 1

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from math import floor

X = int(input())
D = 100
for i in range(1, X+2):
    if D == X:
        print(i-1)
        break
    D = floor(D * (101/100))

Submission status: Runtime Error

Solution code:
import math

ans=0
x = int(input())
y = 100
whlie y<x:
  ans += 1
  y = math.floor(1.01*y)
print(ans)

Submission status: Runtime Error

Solution code:
import math
import numpy as np
X=int(input())
count=0
atcor=100


while True:
    if atcor==X:
        print(count)
        break
    else:
        p=atcor/100
        atcor=atcor+p
        atcor=math.floor(atcor)
        count+=1

Submission status: Runtime Error

Solution code:
import math
X=int(input())
count=0
atcor=100
p=0.01

while True:
    if atcor==X:
        print(count)
        break
    else:
        atcor=(atcor*p)+atcor
        atcor=math.floor(atcor)
        count+=1

Submission status: Runtime Error

Solution code:
K = int(input())
k = K
A,B = map(int, input().split())
for i in range(1, B+1):
    k *= i
    if k > a and k < b:
        print('OK')
        a = True
        break
if not a:
    print('NG')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = int(input())
year = 0
yen = 100
while x > yen:
  yen = int(yen*1.01)
  year+=
  
print(year)

Submission status: Runtime Error

Solution code:
x=int(input())

a=int(100)
for i in range (3800)  :
    a=int(a*1.01)
    #a=round(a) roundは四捨五入、intは切り捨て
    if a < x:
        continue
    else:
        break

print(i+1)　
#range関数によるリストは1番目が0

Submission status: Runtime Error

Solution code:
X = input()
x = 100
for i in range(5000):
  x = x * 101 / 100
  if x >= X:
    print i + 1
    break

Submission status: Runtime Error

Solution code:
def actual(x):
    amount = 100

    count = 0

    while True:
        amount *= 1.01
        amount = math.floor(amount)

        count += 1

        if amount >= x:
            return count

x = int(input())
print(actual(x))

Submission status: Runtime Error

Solution code:
x = int(input())

money = 100
year = 0

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

Submission status: Runtime Error

Solution code:
x = int(input())

moto = 100

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

Submission status: Runtime Error

Solution code:
x = int(input())

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

Submission status: Runtime Error

Solution code:
x = int(input())

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

print(count)

Submission status: Runtime Error

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

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

print(count)

Submission status: Runtime Error

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

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

print(count)

Submission status: Runtime Error

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

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

print(count)

Submission status: Runtime Error

Solution code:
x=int(input())
import math as m
m=100
c=0
while True:
    il=m.floor(m*0.01)
    m+=il
    c+=1
    if m>=x:
        break
    else:
        continue
print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = int(input())
depo = 100
count = 0
while True:
  depo += int(depo / 100)
  count += 1
  if x == depo:
    break;
    
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from math import floor

def f(x,y,n):
  if x >= y:
    return x
  else:
    n += 1
    x += floor(x*0.01)
    return f(x,y,n)

x = int(input())
print(f(100,x,n))

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

ans  = 0

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

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <stdio.h>

int main(){
  long long int a=100;
  long long int k;
  scanf("%lld", &k);
  int ans=0;
  while(a<k){
    a*=1.01;
    ans+=1;
  }
  printf("%d\n", ans);
  return 0;
}

Submission status: Runtime Error

Solution code:
# from sys import exit

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

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
input1 = input()
kbai= int(input1)
 
input2=input().split(" ")
maxs= int(input2[0])
mins= int(input2[1])
flg=0
ans=0
 
while ans < maxs:
  ans=ans+kbai
  if ans >= mins and ans <= maxs:
    flg=1
 
if flg ==1:
  print("OK")
else:
  print("NG")

Submission status: Runtime Error

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

wallet=100
i=0

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

print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from math import *
def answer(x):return ceil(log(x)/(log(100) + log(1.05)))
print(int(answer(int(input())))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X = int(input())
Y = 100
A = 0
While X < Y:
    Y *= a * 1.01
    A += 1
print(A)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

A = 100
i = 0

while true:
    if X <= A :
        print(0)
        break
    else:
        i += 1
        A = math.floor(A*1.1) :

Submission status: Runtime Error

Solution code:
a,b,n=map(int,input().split())
if n>=b-1:
  print(int(a*(b-1)/b)-a*int((b-1)/b))
else:
  print(int(a*n/b)-a*int(n/b))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X = int(input())
y = 100
ans = 0
while(True):
  ans++
  y += y//100
  if(X<=y):
    break
print(ans)

Submission status: Runtime Error

Solution code:
X = int(input())

val = 100

n = 0
while val < X:
	val = int(val * 1.01)
    n += 1
    
print(n)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x,m=int(input()),100
for d in range(4000):m+=m//100
 if x<=m:print(d+1);exit()

Submission status: Runtime Error

Solution code:
import sys
K = int(input())
A, B = map(int, input().split())

for i in range(1000):
    s = K * i
    if A <= s <= B:
        print("OK")
        sys.exit()
print("NG")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
##import math

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

while goukei < x:
    counter += 1
    goukei += int(1 + counter * 0.01)
    print(goukei)

    
print(counter)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

p = 100
c = 0
while cash < X:
    p=floor(p*1.01)
    c += 1
print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from collections import  *
def io():
    return map(int,input().split())
def op():
    return list(map(int,input().split()))
n=int(input())
c=1
x=100
while 1:
    x=x*(1.01)
    x=int(x)
    if x==n:
        break
    c+=1
print(c)

Submission status: Runtime Error

Solution code:
import math
a = 100
b = int(input())
b - a = c
d = c ** 0.1
print(math.floor(d))

Submission status: Runtime Error

Solution code:
n = int(input())
a = 0
i = 100
b+= 0
ans = 0
while i>=n:
    ans = (i*1)/100
    b +=1
    i += 1
print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math


 
a = float(input())
p = 100
double x = log10(a-p)
double y = log10(1.01)
z = x/y


print(z)

Submission status: Runtime Error

Solution code:
X = int(input())
n = range(10**8)

for _ in n:
    N = 1.01**n
    if N < float(X/100):
        continue
    else:
        print(int(n))
        pass

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if a<X:
  year+=1
  a=a＊1.01
 
print(year)

Submission status: Runtime Error

Solution code:
X=ixt(input())
a=100
year=0

if a<X:
  year+=1
  a=a＊1.01
 
print(year)

Submission status: Runtime Error

Solution code:
X=ixt(input())
a=100
year=0

if a<X:
  year+=1
  a*=1.01
 
print(year)

Submission status: Runtime Error

Solution code:
import math
a = int(input())
k = 100.0
cnt = 0
while True:
    k = math.floor(k*1.01)
    cnt += 1
    if str(k)[0:3] == str(a)[0:3] and len(str(k)) == len(str(a)):
        break
    
print(cnt)

Submission status: Runtime Error

Solution code:
X = int(input)
p = int((X/100)*1)
for i in X:
  i -=p
print(i)

Submission status: Runtime Error

Solution code:
X = int(input())

for i in range(X):
  if X == int(100 * (1.01 ** i)):
    print(i)
    break

Submission status: Runtime Error

Solution code:
x = int(input())
Counter = 0
Amount = 100

while (Amount < x):
    simpleInterest = finalAmount // 100
    Amount += simpleInterest
    Counter += 1
print(Counter)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = int(input())
year = 0
cash = 100
while(True){
	cash += int(cash/100)
  	year++
	if(num < cash):
  		print(year)
  		break
	}

Submission status: Runtime Error

Solution code:
x=int(input())

a=100
k=0
while(1):
  k+=1
  a=a+a(1//100)
  if(a>=x):break
print(k)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
X = int(input() .split)
Yokin = 100
Nen = 0

while X > Yokin:
	Yokin = math.floor(Yokin * 1.01)
	Nen = Nen + 1

print( Nen )

Submission status: Runtime Error

Solution code:
X=int(input())
a=100
for i in range(1,10**18):
  s=int(0.01*a)
  a+=s
  if X<=a:
    print(i)

Submission status: Runtime Error

Solution code:
X=int(input())
a=100
for i in range(1,1000000000000000000):
  s=int(0.01*a)
  a+=s
  if X<=a:
    print(i)

Submission status: Runtime Error

Solution code:
X=int(input())
a=100
import math
for i in range(1,1000000000000000000):
  a+=math.floor(0.01*a)
  if X<=a:
    print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

def f(x):
  return math.log(x)/100.01

print(math.ceil(f(x)))

Submission status: Runtime Error

Solution code:
from math import log,ceil
x=int(input())
p=100
r=0.01

for i in range(1,3760+1):
    c=floor(p*(1.01)**1)
    if c<x:
        p+=c-p
    else:
        break
print(i)

Submission status: Runtime Error

Solution code:
x = int(input())
m = 100
i = 0.01
y = 0
flag = True
while flag:
    m = math.floor(m*(1+i))
    y += 1
    if m >= x:
        break
print(y)

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split())
Nlist = []
for i in range(1,N+1):
    Nlist.append(i)
count = 0
for i in range(N):
    count += 1
    if count>M:
        break
    print(Nlist[i],Nlist[-(i+1)])

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split())
#Dストックを昇順で生成する。
Dstock = {}
Nstock = {}
for i in range(1,N):
    Dstock[i]=""
    Nstock[i]=""
Nstock[N] = ""

count = 0
while Nstock and count<M:
    count += 1
    for i in Dstock.keys():
        for j in Nstock.keys():
            print(j,j+i)
            del Nstock[j]
            del Nstock[j+i]
            del Dstock[i]
            del Dstock[N-i]
            break
        else:
            continue
        break

Submission status: Runtime Error

Solution code:
X = int(input())

import math

Yokin = 100
Nen = 0

while X > Yokin
	Yokin = math.floor(Yokin * 1.01)
	Nen = Nen + 1

print( Nen )

Submission status: Runtime Error

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

while True:
    if a > X:
        print(count)
        break
    else:
        a  = math.floor(a*1.01)
        count= count+1

Submission status: Runtime Error

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

sum=0
y=100
for i in range(200000):
  y=math.floor(y*1.01)
  if y<=x:
    sum+=1
  else:
    sum=sum
print(sum+1)

Submission status: Runtime Error

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

for i in range(10**18):
  n = 1.01**i
  if X == math.floor(n*100):
    print(i)
    break

Submission status: Runtime Error

Solution code:
X = int(input())
default = 100
rishi = 

year = 1
while True:
    default = default + 1
    if default == X:
        print(year)
        break
    year += 1

Submission status: Runtime Error

Solution code:
a = input()
A = []
for i in range(101, a+1, 1):
    str(i).append(A)
print(len(A))

Submission status: Runtime Error

Solution code:
K = int(input())
A,B = map(int, input().split())

if K*i in range(A,B):
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

Solution code:
G = int(input())
A, B = map(int,input().split())
Total = 'OK'
for i in range(A,B+1):
    if i% G != 0:
        Total = 'NG'
print(Total)

Submission status: Runtime Error

Solution code:
def one_percent(n, end, i):
  if n >= end:
    print(i)
    return

  n = int(n * 0.01 + n)
  i = i + 1
  one_percent(n, end, i)


N = int(input())
one_percent(100, N, 0)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
x = int(input())
q = 100
cnt = 0
while 1:
    cnt += 1
    q += int(0.01*q)
    if q == x:
        print(cnt)
        break

Submission status: Runtime Error

Solution code:
from math import log
x = int(input())
x = x/100
return int(log(x)/log(1.01))

Submission status: Runtime Error

Solution code:
a = input()
A = []
for i in range(101, a+1, 1):
    str(i.append(A)
print(len(A))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
a = int(input())
print(ceil(a//100))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import math
a = int(input())
print(ceil(a/100))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import math
Target = int(input())
original = 100
i=0;
while(1)
 i=i+1;
 original = int(original + original*0.01)
 if(original > target)
   print(i)
   break;

Submission status: Runtime Error

Solution code:
mport math
money = 100
x = int(input())
#print(x)
cnt = 0
while money <= x:
  money += money * 0.01
  money = int(money)
  cnt += 1
  #print(cnt,money)
print(cnt)

Submission status: Runtime Error

Solution code:
x = int(input())
count=0
a=100
for i in range(1,10^18):
	count += 1
	a=100*101//100
	if a==x
	print(count)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = input()
print(a//100)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
for the first time it takes 1 year
It takes more then 10000years

Submission status: Runtime Error

Solution code:
x = int(input())
count=0
a=100
for i in range(1,10^18):
	count += 1
	a=100*101//100
	if a=x
	print(count)

Submission status: Runtime Error

Solution code:
a = input()
A = []
for i in range(str(101, a+1, -1)):
    i.append(A)
print(len(A))

Submission status: Runtime Error

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

y>=math.log(1.01, N/100)
print(y)

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;
 int main(){
	long long X;
	cin>>X;
	long long  tyokin = 100;
	int t = 0;
	cout<<X<<endl;
	while (tyokin<X){
		tyokin = tyokin*(1.01);
		t+=1;
	}
	cout<<t<<endl;
}

Submission status: Runtime Error

Solution code:
X=int(input())
sum=0
for i in range(10000)
    if (100*((1.01)**i))<X:
        sum += 1
print(sum)

Submission status: Runtime Error

Solution code:
N = int(input())

y>=math.log(1.01, N/100)
print(y)

Submission status: Runtime Error

Solution code:
a = input()
A = []
for i in range(str(101, a+1, 1)):
    i.append(A)
print(len(A))

Submission status: Runtime Error

Solution code:
K=int(input())
A,B=map(int,input().split())
C=B-A
if C>=K:
    print("OK")
elif A%K==0:
    print("OK")
elif B%K==0:
    print("OK")
else:
    print("NG")

Submission status: Runtime Error

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

for i in range(X):
  A = A * 1.01
  if math.floor(A) == X:
    c = c+1
    break
    
  c = c+1

print(c)

Submission status: Runtime Error

Solution code:
year = 1
n = 100
while True:
    if n >= X:
        print(year-1)
        exit()
    n = int(n * 1.01)
    year += 1

Submission status: Runtime Error

Solution code:
X = map(int,input())
n = round(100 * (1.01 ** ans))
ans = 1
while n < X:
  ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
a = input()
A = []
for i in range(int(101, a+1, 1)):
    i.append(A)
print(len(A))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X = map(int,input())
n = ground(100 * (1.01 ** ans))
ans = 1
while n < X:
  ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
a = input()
A = []
for i in range(101, a+1, 1):
    i.append(A)
print(len(A))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
typedef long long ll;
#define X first
#define Y second
#define dbl double
#define forn(i,n,k) for(int i=0;i<n;i=i+k)
#define forpn(p,n,k) for(int i=p;i<n;i+=k)
 
using namespace std;
long long gcd(int a,int b)
{
    if(b==0) return a;
    else return gcd(b,a%b);
}
int main()
{
    ll x,y=100,count=0;
  
  cin>>x;
  	while(x>y)
    {
      y=floor(y*1.01);
      count++;
    }
  cout<<count;
    return 0;
}

Submission status: Runtime Error

Solution code:

X = int(input())
m = 100
y = 0
while True:
    if X <= m: break
    m = math.floor(m * 1.01)
    y += 1
print(y)

Submission status: Runtime Error

Solution code:
a = input()
A = []
for i in range(101, a+1):
    i.append(A)
print(len(A))

Submission status: Runtime Error

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