Problem:


Score : 300 points

Problem Statement

As a token of his gratitude, Takahashi has decided to give his mother an integer sequence.
The sequence A needs to satisfy the conditions below:

A consists of integers between X and Y (inclusive).

For each 1\leq i \leq |A|-1, A_{i+1} is a multiple of A_i and strictly greater than A_i.

Find the maximum possible length of the sequence.

Constraints

1 \leq X \leq Y \leq 10^{18}

All input values are integers.

Input

Input is given from Standard Input in the following format:

X Y

Output

Print the maximum possible length of the sequence.

Sample Input 1

3 20

Sample Output 1

3

The sequence 3,6,18 satisfies the conditions.

Sample Input 2

25 100

Sample Output 2

3

Sample Input 3

314159265 358979323846264338

Sample Output 3

31



Sample input:
3 20


Sample output:
3

Submission status: Wrong Answer

Solution code:
import math
X,Y = map(int,input().split())
print(math.floor(math.log(Y,2)-math.log(X,2)+1))

Submission status: Wrong Answer

Solution code:
import math
X,Y = map(int,input().split())
print(math.floor(math.log(Y/X,2)+1))

Submission status: Wrong Answer

Solution code:
import math
X,Y = map(int,input().split())
print(int(math.log(Y/X,2)+1))

Submission status: Wrong Answer

Solution code:
import math

x,y=map(int,input().split())
a=y//x
ans=math.log(a,2)//1+1
print(int(ans))

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
ans = 0
while x<y:
  x *= 2
  ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
from math import log2, floor
X, Y = map(int, input().split())
ans = floor(log2(Y//X)) + 1
print(ans)

Submission status: Wrong Answer

Solution code:
from math import log2, floor
X, Y = map(int, input().split())
ans = floor(log2(Y/X)) + 1
print(ans)

Submission status: Wrong Answer

Solution code:
from math import log2
X, Y = map(int, input().split())
print(1 + int(log2(Y / X)))

Submission status: Wrong Answer

Solution code:
from math import log2
X, Y = map(int, input().split())
print(1 + int(log2(Y // X)))

Submission status: Wrong Answer

Solution code:
a,b=input().split()
a=int(a)
b=int(b)
c=b/a
d=1
e=0
for i in range(60):
  d=2*d
  e=e+1
  if d>c:
    print(e)
    break

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
cnt = 1
while x < y:
    x *= 2
    cnt += 1
print(cnt-1)

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
import math

print(int(math.log2(y/x))+1)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

cnt=1
while 2*X<Y:
	X*=2
	cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:

import math

x, y = map(int, input().split())

ans = int(math.log2(y) - math.log2(x)) + 1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=input().split()
a=int(a)
b=int(b)
c=b/a
x=1
y=0
while x<=c:
  x=2*x
  y=y+1
print(y)

Submission status: Wrong Answer

Solution code:
a,b=input().split()
a=int(a)
b=int(b)
c=b/a
i=1
x=0
while i<=c:
  i=2*i
  x=x+1
print(x)

Submission status: Wrong Answer

Solution code:
a,b=input().split()
a=int(a)
b=int(b)
c=b/a
i=1
x=0
while i<c:
  i=2*i
  x=x+1
print(x)

Submission status: Wrong Answer

Solution code:
x, y = (int(x) for x in input().split())
from numpy import log2
ans = int(log2(y/x)+10e5) + 1
print(ans)

Submission status: Wrong Answer

Solution code:
x, y = (int(x) for x in input().split())
from numpy import log2
ans = int(log2(y/x+1)) + 1
print(ans)

Submission status: Wrong Answer

Solution code:
x, y = (int(x) for x in input().split())
from numpy import log2
ans = int(log2(y/x)) + 1
print(ans)

Submission status: Wrong Answer

Solution code:
x, y = (int(x) for x in input().split())
from numpy import log2, floor
ans = int(log2(y//x)) + 1
print(ans)

Submission status: Wrong Answer

Solution code:
import math
X,Y = map(int,input().split())
print(int(math.log2(Y/X))+1)

Submission status: Wrong Answer

Solution code:
from math import log2
from decimal import Decimal

x, y = map(int, input().split())
dx = Decimal(log2(x))
dy = Decimal(log2(y))
print(1 + int(dy - dx))

Submission status: Wrong Answer

Solution code:
from math import log2

x, y = map(int, input().split())
print(int(1 + log2(y) - log2(x)))

Submission status: Wrong Answer

Solution code:
from math import log2

x, y = map(int, input().split())
print(int(1 + log2(y / x)))

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())

ans = 1
while x <= y:
    x *= 2
    ans += 1
else:
    print(ans)

Submission status: Wrong Answer

Solution code:
from math import log

x, y = map(int, input().split())
print(int(1 + log(y, 2) - log(x, 2)))

Submission status: Wrong Answer

Solution code:
from math import log

x, y = map(int, input().split())
print(int(1 + log(y / x, 2)))

Submission status: Wrong Answer

Solution code:
from math import log

x, y = map(int, input().split())
print(1 + int(log(y // x, 2)))

Submission status: Wrong Answer

Solution code:
from math import log

x, y = map(int, input().split())
print(1 + int(log(y / x, 2)))

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
lst=[]
lst.append(x)
for i in range(2,y):
    z=0
    z=lst[-1]*2
    if z>y or z>10**18:
        print(len(lst))
        break
    else:
        lst.append(z)
# print()

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
lst=[]
lst.append(x)
for i in range(2,y):
    z=0
    z=lst[-1]*2
    if z>y:
        print(len(lst))
        break
    else:
        lst.append(z)
# print()

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
for i in range(60):
    if x*(2**i)>y:
        break
print(i)

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
for i in range(1,60):
    if x*2>=y:
        break
    else:
        x = x*2
print(i)

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
for i in range(1,60):
    if x*2>y:
        break
    else:
        x = x*2
print(i)

Submission status: Wrong Answer

Solution code:
import math
from decimal import *
X, Y = map(int,input().split())
getcontext().prec = 40
log = Decimal(math.log2(Decimal(Y) / Decimal(X)))
print(int(math.modf(log)[1]+1))

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int,input().split())
log = math.log2(Y/X)
print(int(math.modf(log)[1]+1))

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
import bisect as bi
ans=1
for i in range(80):
    if x*2<=y:
        ans+=1
print(ans)

Submission status: Wrong Answer

Solution code:
from math import log2

x, y = map(int, input().split())
print(int(log2(y / x) + 1))

Submission status: Wrong Answer

Solution code:
from math import log2

x, y = map(int, input().split())
print(int(log2(y / x)) + 1)

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(4100000)
import math
import itertools
INF = float('inf')
from heapq import heapify, heappop, heappush

def main():
    x,y = map(int, input().split())
    print(int(math.log(y/x,2)+1))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(4100000)
import math
import itertools
INF = float('inf')
from heapq import heapify, heappop, heappush

def main():
    x,y = map(int, input().split())
    print(int(math.log(y/x,2))+1)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math

X, Y = map(int, input().split())

ans = math.floor(math.log2(Y / X)) + 1
print(ans)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())
N = Y // X
for i in range(N):
    if N <= math.factorial(i):
        break
print(i)

Submission status: Wrong Answer

Solution code:
import math
X, Y = list(map(int, input().split()))

val = 2
i = 1
while True:
    val = 2**i
    if val > 2*Y/X:
        break
    i += 1

print(i-1)

Submission status: Wrong Answer

Solution code:
import math
X, Y = list(map(int, input().split()))

i = math.floor(math.log2(2*Y/X))

if 2**(i) <= Y/X:
    print(i)
    exit()

print(i)

Submission status: Wrong Answer

Solution code:
import math
X, Y = list(map(int, input().split()))

i = int(math.log2(2*Y/X))

print(i)

Submission status: Wrong Answer

Solution code:
import math
X, Y = list(map(int, input().split()))

i = math.floor(math.log2(2*Y/X))

print(i)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
ans=0
while x<=y:
  x=x*2
  ans+1
  
print(ans)

Submission status: Wrong Answer

Solution code:
import math
X,Y = (int(T) for T in input().split())
print(1+math.floor(math.log2(Y)-math.log2(X)))

Submission status: Wrong Answer

Solution code:
x, y=map(int, input().split())
import math
d=math.log2(y/x)
print(math.ceil(d))

Submission status: Wrong Answer

Solution code:
x, y=map(int, input().split())
import math
print(int(math.log2(y/x))+1)

Submission status: Wrong Answer

Solution code:
from math import floor, log2
X,Y=map(int,input().split(' '))
print(1+floor(log2(Y//X)))

Submission status: Wrong Answer

Solution code:
from math import floor, log2
X,Y=map(int,input().split(' '))
print(1+floor(log2(Y/X)))

Submission status: Wrong Answer

Solution code:
import sys
x,y = map(int,input().split())
cnt = 1
for i in range(1,60):
  if x*2 <= y:
    cnt += 1
    x *= 2
  else:
    print(cnt)
    sys.exit()

Submission status: Wrong Answer

Solution code:
import math
[x,y] = [int(i) for i in input().split()]
div = y / x
ls = []
for i in range(100):
  ls.append(2 ** i)
if int(div) in ls:
  print(math.ceil(math.log(div,2))+1)
else:
  print(math.ceil(math.log(div,2)))

Submission status: Wrong Answer

Solution code:
import math
[x,y] = [int(i) for i in input().split()]
div = y / x
ls = []
for i in range(50):
  ls.append(2 ** i)
if int(div) in ls:
  print(int(math.log(div,2))+1)
else:
  print(int(math.log(div,2)))

Submission status: Wrong Answer

Solution code:
import math
[x,y] = [int(i) for i in input().split()]
div = y / x
ls = []
for i in range(50):
  ls.append(2 ** i)
if int(div) in ls:
  print(int(math.log(div,2))+1)
else:
  print(math.ceil(math.log(div,2)))

Submission status: Wrong Answer

Solution code:
import math
[x,y] = [int(i) for i in input().split()]
div = y / x
ls = []
for i in range(54):
  ls.append(2 ** i)
if int(div) in ls:
  print(math.ceil(math.log(div,2))+1)
else:
  print(math.ceil(math.log(div,2)))

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())

ans = 0
while True:
    if x < y:
        ans += 1
        x *= 2
    else:
        break
print(ans)

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
ans = 0
while x < y:
    x *= 2
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
from math import log2

def mi():
    return map(int, input().split())

def ii():
    return int(input())

def main():
    X, Y = mi()
    print(int(log2(Y)-log2(X)+0.00001)+1)
    


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
from math import log2

def mi():
    return map(int, input().split())

def ii():
    return int(input())

def main():
    X, Y = mi()
    print(int(log2(Y)-log2(X))+1)
    


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math

x, y = [int(i) for i in input().split()]

if( x <= y):
    print(int(math.log2(y / x)) + 1)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
import math

x, y = [int(i) for i in input().split()]

print(int(math.log2(y / x)) + 1)

Submission status: Wrong Answer

Solution code:
x,y = list(map(int,input().split()))
cnt=0
while x<=y:
    x=x*2
    cnt+=1
    print(x)
print(cnt)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())

print(int(math.log2(Y/X))+1)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())

print(int(math.log2(Y//X))+1)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
z=y/x
cnt=0
while z>=1:
  cnt+=1
  z/=2
print(cnt)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

a = X
count = 1
while a <= Y:
    count += 1
    a *= 2

print(count)

Submission status: Wrong Answer

Solution code:
from math import ceil, log2
x, y = [int(s) for s in input().split()]
print(ceil(log2(y / x)))

Submission status: Wrong Answer

Solution code:
from math import floor, log2
x, y = [int(s) for s in input().split()]
print(floor(log2(y / x)) + 1)

Submission status: Wrong Answer

Solution code:
from math import log2
x, y = [int(s) for s in input().split()]
print(int(log2(y / x)) + 1)

Submission status: Wrong Answer

Solution code:
from math import log2
x, y = [int(s) for s in input().split()]
print(int(log2(y // x)) + 1)

Submission status: Wrong Answer

Solution code:
x,y = map(int, input().split())

z = y//x 

import math 

res = math.log(z,2)

print(int(res)+1)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())
n = math.log(Y / X, 2)
n = math.floor(n)
print(n + 1)

Submission status: Wrong Answer

Solution code:
from math import *

def solve(x,y,ans=1):
  return 1 + ceil(log2(y/x))
  
X,Y = map(int,input().split())
print(solve(X,Y))

Submission status: Wrong Answer

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

X,Y = list(map(int, input().rstrip().split()))
#-----

calc = math.log( (Y / X) , 2) + 1
print( int(calc) )

Submission status: Wrong Answer

Solution code:
from math import floor
from decimal import Decimal

A, B = list(map(int, input().split()))

num = A
c = 0
while num < B:
    num *= 2
    c+=1

print(c)

Submission status: Wrong Answer

Solution code:
from math import floor
from decimal import Decimal

A, B = list(map(int, input().split()))

num = [A]
c = 0
while num[len(num)-1] < B:
    num.append(num[c]*2)
    c+=1

print(len(num)-1)

Submission status: Wrong Answer

Solution code:
from math import log
def calc_log2_int(n):
  """
  calc maximum integer m, such that 2 ^ m <= n 
  """
  candidate = int(log(n, 2))
  if pow(2, candidate + 1) == n:
      raise RuntimeError
    #   return candidate + 1
  else:
      return candidate


x, y = map(int, input().split())
n = y // x
print(calc_log2_int(n) + 1)

Submission status: Wrong Answer

Solution code:
from math import log
def calc_log2_int(n):
  """
  calc maximum integer m, such that 2 ^ m <= n 
  """
  candidate = int(log(n, 2))
  if pow(2, candidate + 1) == n:
      return candidate + 1
  elif pow(2, candidate - 1) == n:
      raise RuntimeError
    #   return candidate - 1
  else:
      return candidate


x, y = map(int, input().split())
n = y // x
print(calc_log2_int(n) + 1)

Submission status: Wrong Answer

Solution code:
from math import log
def calc_log2_int(n):
  """
  calc maximum integer m, such that 2 ^ m <= n 
  """
  candidate = int(log(n, 2))
  if pow(2, candidate + 1) == n:
      return candidate + 1
  elif pow(2, candidate - 1) == n:
      return candidate - 1
  else:
      return candidate


x, y = map(int, input().split())
n = y // x
print(calc_log2_int(n) + 1)

Submission status: Wrong Answer

Solution code:
from math import log
def calc_log2_int(n):
  """
  calc maximum integer m, such that 2 ^ m <= n 
  """
  candidate = int(log(n, 2))
  if pow(2, candidate + 1) == n:
      return candidate + 1
  else:
      return candidate


x, y = map(int, input().split())
n = y // x
print(calc_log2_int(n) + 1)

Submission status: Wrong Answer

Solution code:
import math
x, y = map(int,input().split())

print(int(math.log2(int(y/x)) + 1))

Submission status: Wrong Answer

Solution code:
from math import floor
from math import log
def main():
    x, y = map(int, input().split())

    xy = floor(y / x)
    r = floor(log(xy, 2)) + 1
    print(int(r))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
from math import floor
from math import log
def main():
    x, y = map(int, input().split())

    xy = floor(y / x)
    r = floor(log(xy, 2)) + 1
    print(r)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
from math import floor
from math import log
def main():
    x, y = map(int, input().split())

    xy = floor(y / x)
    r = floor(log(xy, 2)) + 1
    if r == 1:
        r = 0
    print(r)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
from math import floor
from math import log
def main():
    x, y = map(int, input().split())

    if x == y:
        r = 1
    else:
        xy = floor(y / x)
        r = floor(log(xy, 2)) + 1

    print(r)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
from math import floor
def main():
    x, y = map(int, input().split())
    xy = floor(y / x)
    r = 0
    if x == y:
        r = 1
    else:
        num = 1
        cnt = 1
        while True:
            num *= 2
            if num <= xy:
                cnt += 1
            else:
                r = cnt
                break
    print(r)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
from math import floor
def main():
    x, y = map(int, input().split())
    xy = floor(y / x)
    r = 0
    if xy == 0:
        r = 0
    else:
        num = 1
        cnt = 1
        while True:
            num *= 2
            if num <= xy:
                cnt += 1
            else:
                r = cnt
                break
    print(r)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math

X, Y =  map(float, input().split())
YdX = Y/X
math.log(YdX, 2)
print(int(math.log(YdX, 2))+1)

Submission status: Wrong Answer

Solution code:
import math

X, Y =  map(int, input().split())
YdX = Y/X
math.log(YdX, 2)
print(int(math.log(YdX, 2))+1)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())
ans = math.floor(math.log2(Y//X) + 1)
print(ans)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

if 2*X < Y:
    cnt = 1
else:
    cnt = 0
while True:
    X *= 2
    if X > Y:
        break
    cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
import math
x,y=map(int,input().split())
print(1+int(math.log2(y//x)))

Submission status: Wrong Answer

Solution code:
n,m=map(int,input().split())
from math import log2
print(int(log2(m/n))+1)

Submission status: Wrong Answer

Solution code:
n, m = map(int, input().split())
cnt = 0
while n <= m:
  n *= 2
  cnt += 1
print(n)

Submission status: Wrong Answer

Solution code:
n, m = map(int, input().split())
cnt = 0
while n <= m:
  n *= 2
  cnt += 1
print(n)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

n = Y//X
ans = 0
while n>=1:
    n /= 2
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
from math import log2

print(int(log2(Y//X))+1)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
from math import log2

print(int(log2(Y/X))+1)

Submission status: Wrong Answer

Solution code:
X, Y = list(map(int,input().split()))
if X == Y:  print(0)
else:
    ans = 0
    while X <= Y:
        X *= 2
        ans += 1
    print(ans)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
a=y/x
i=1
while 2**i<=a:
    i+=1
print(i)

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
al = []
a = x
al.append(a)
while (a < y):
  a *= 2
  if a >= y:
    break
  al.append(a)
print(len(al))

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
al = []
a = x
al.append(a)
while (a <= y):
  a *= 2
  if a >= y:
    break
  al.append(a)
print(len(al))

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
al = []
a = x
al.append(a)
for i in range(int(x)):
  a *= 2
  if a >= y:
    break
  al.append(a)
print(len(al))

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
al = []
a = x
al.append(a)
for i in range(int(x) - 1):
  a *= 2
  if a > y:
    break
  al.append(a)
print(len(al))

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
al = []
a = x
al.append(a)
for i in range(int(x)):
  a *= 2
  if a > y:
    break
  al.append(a)
print(len(al))

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
al = []
a = x
al.append(a)
for i in range(1, int(x)):
  a *= 2
  if a > y:
    break
  al.append(a)
print(len(al))

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
t = 0
while x <= y:
  x *= 2
  t = 0

print(t)

Submission status: Wrong Answer

Solution code:
import math

x,y = map(int,input().split())
print(int(math.log2(y/x))+1)

Submission status: Wrong Answer

Solution code:
import math

x,y = map(int,input().split())
y += 1
print(int(math.log2(y/x))+1)

Submission status: Wrong Answer

Solution code:
from math import log

X, Y = map(int, input().split(' '))

print(int(log(Y, 2) - log(X, 2)) + 1)

Submission status: Wrong Answer

Solution code:
from math import ceil, log

X, Y = map(int, input().split(' '))

print(ceil(log(Y, 2) - log(X, 2)))

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())

ans = 0
while x < y:
    ans += 1
    x *= 2

print(ans)

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())

#2^60 = 1,152,921,504,606,846,976 > 10^18である。
for i in range(60):
    if y < x * 2**i:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())

#2^60 = 1,152,921,504,606,846,976 > 10^18である。
for i in range(60):
    if y / x < 2**i:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())

counter = 0
a = y / x
counter += 1

#2^60 = 1,152,921,504,606,846,976 > 10^18である。
for i in range(1,60):
    if a < 2**i:
        print(counter)
        exit()
    else:
        counter += 1

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
count=0
while x<y:
  x*=2
  count+=1
print(count)

Submission status: Wrong Answer

Solution code:

x,y=map(int,input().split())
tmp=x
for i in range(y):
    tmp=x*2**i
    if tmp >y:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
import math
x, y = map(int, input().split())
print(math.ceil(math.log(y, 2) - math.log(x, 2)))

Submission status: Wrong Answer

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

X, Y = MAP()
print(1+(Decimal(Y/X).log10()/Decimal(2).log10()).quantize(Decimal('0'), rounding=ROUND_DOWN))

Submission status: Wrong Answer

Solution code:
from math import log
x, y = map(int, input().split())
print(int(log(y // x, 2)) + 1)

Submission status: Wrong Answer

Solution code:
import math

a,b = map(int, input().split())
n= math.floor(math.log2(b/a))
print(n+1)

Submission status: Wrong Answer

Solution code:
import math

a,b = map(int, input().split())
print(b/a)
n= math.floor(math.log2(b/a))
print(n+1)

Submission status: Wrong Answer

Solution code:
import math

a,b = map(int, input().split())
n= int(math.log2(b/a))
print(n+1)

Submission status: Wrong Answer

Solution code:
import math
x, y = map(int, input().split())
s=math.log2(y/x)
print(1+int(s))

Submission status: Wrong Answer

Solution code:
# one example of valid A is {X, (2 * X), (2 * 2 * X), ...}
# -> calculate `N + 1` s.t. X * (2 ^ N) <= Y < X * (2 ^ (N + 1))
# -> N <= log2(Y / X) < N + 1
import math
X, Y = list(map(int, input().split()))
print(1 + math.floor(math.log2(Y / X)))

Submission status: Wrong Answer

Solution code:
# one example of valid A is {X, (2 * X), (2 * 2 * X), ...}
# -> calculate `N + 1` s.t. X * (2 ^ N) <= Y < X * (2 ^ (N + 1))
# -> N <= log2(Y / X) < N + 1
import math
X, Y = list(map(int, input().split()))
print(math.ceil(math.log2(Y / X)))

Submission status: Wrong Answer

Solution code:
import math
import numpy as np
x,y = map(int,input().split())

ans = int(np.log2(y//x) + 1)
# ans = 0
# now = x
# while now <= y:
#     ans += 1
#     now *= 2
#
# print(bin(y//x)[1])

print(ans)

Submission status: Wrong Answer

Solution code:
import math
x,y = map(int,input().split())

ans = int(math.log2(y//x) + 1)
# ans = 0
# now = x
# while now <= y:
#     ans += 1
#     now *= 2
#
# print(bin(y//x)[1])
print(ans)

Submission status: Wrong Answer

Solution code:
import math
x,y = map(int,input().split())

ans = int(math.log2(y/x) + 1)
print(ans)

Submission status: Wrong Answer

Solution code:
import math
x,y=map(int,input().split())
print(int(math.log(y,2)-math.log(x,2))+1)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print(b//a)

Submission status: Wrong Answer

Solution code:
import math
x,y=map(int,input().split())
a=int(math.log2(y)-math.log2(x))
print(a+1)

Submission status: Wrong Answer

Solution code:
import math
x,y=map(int,input().split())
a=int(math.log2(y/x))
print(a+1)

Submission status: Wrong Answer

Solution code:
import math

X,Y=map(int,input().split())
#print(math.floor(math.log(Y/X,2))+1)
if 2*X<Y:
    print(math.floor(math.log(Y/X,2))+1)
else:
    print(1)

Submission status: Wrong Answer

Solution code:
import math

X,Y=map(int,input().split())
print(math.floor(math.log(Y/X,2))+1)

Submission status: Wrong Answer

Solution code:
import math

X,Y = map(int,input().split())

print(math.floor(math.log(Y/X,2)) + 1)

Submission status: Wrong Answer

Solution code:
import math

x,y = map(int,input().split())

b = math.floor(y/x)
a = math.floor(math.log(b,2))

print(a+1)

Submission status: Wrong Answer

Solution code:
import math

x,y = map(int,input().split())

a = math.floor(math.log((y/x),2))

print(a+1)

Submission status: Wrong Answer

Solution code:
x,y = map(int,(input().split()))
if x == 1:
    print(y)
else:
    now = x
    c = 1
    while now*2 <= y:
        now *= 2
        c += 1
    print(c)

Submission status: Wrong Answer

Solution code:
x,y=map(int, input().split())
ans=1
while x<y:
    x=x*2
    ans+=1
print(ans)

Submission status: Wrong Answer

Solution code:
import math
from fractions import Fraction
x,y=map(int, input().split())
print(int(math.log(Fraction(y,x),2))+1)

Submission status: Wrong Answer

Solution code:
import math
x,y=map(int, input().split())
print(int(math.log(float(y/x),2))+1)

Submission status: Wrong Answer

Solution code:
import math
x,y=map(int, input().split())
print(int(math.log(y/x,2))+1)

Submission status: Wrong Answer

Solution code:
import math

x, y = [int(x) for x in input().split()]
print(1 + math.floor(math.log(y, 2) - math.log(x, 2)))

Submission status: Wrong Answer

Solution code:
import math

x, y = [int(x) for x in input().split()]
print(1 + math.floor(math.log2(y / x)))

Submission status: Wrong Answer

Solution code:
import math

x, y = [int(x) for x in input().split()]
print(1 + math.floor(math.log2(y) - math.log2(x)))

Submission status: Wrong Answer

Solution code:
X,Y=list(map(int, input().split()))
present=[X]
i=0
while present[i]<Y:
    present.append(present[i]*2)
    i=i+1

print(len(present)-1)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())
ans = math.floor(math.log2(Y/X))
if ans == 0:
  print(0)
else:
  print(ans+1)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())
if Y < X*2:
  print(0)
  exit()
ans = math.floor(math.log2(Y/X))
print(ans+1)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())
if Y < X*2:
  print(0)
  exit()
ans = math.ceil(math.log2(Y/X))
if Y % X == 0:
  print(ans+1)
else:
  print(ans)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())
ans = math.ceil(math.log2(Y/X))
if Y % X == 0:
  print(ans+1)
else:
  print(ans)

Submission status: Wrong Answer

Solution code:
import math
X, Y = map(int, input().split())
ans = math.ceil(math.log2(Y//X))
if Y % X == 0:
  print(ans+1)
else:
  print(ans)

Submission status: Wrong Answer

Solution code:
X,Y = map(int,input().split())

ans = 0
tmp = X

while tmp < Y:
    ans += 1
    tmp = tmp*2
    
print(ans)

Submission status: Wrong Answer

Solution code:
import math
x, y = map(int, input().split())
print(int(math.log(y//x, 2))+1)

Submission status: Wrong Answer

Solution code:
import math
x, y = map(int, input().split())
print(int(math.log(y/x, 2))+1)

Submission status: Wrong Answer

Solution code:
x,y = map(int, input().split())

num = y/x
count = 0

while num>=1:
    num /=2
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
import math

print(1 + math.floor(math.log2(Y/X)))

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
a = y / x
for i in range(100):
    if 2 ** i > a:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(10000)

x,y = map(int,input().split())

if y == 1:
    print(1)
    exit()

asn = 0
def dfs(x,y,n):
    
    n += 1
    ans = x*2**n
    if ans > y:
        return n
    else:
        return dfs(x,y,n)

a = dfs(x,y,1)

print(a)

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(10000)

x,y = map(int,input().split())

asn = 0
def dfs(x,y,n):
    
    n += 1
    ans = x*2**n
    if ans > y:
        return n
    else:
        return dfs(x,y,n)

a = dfs(x,y,1)

print(a)

Submission status: Wrong Answer

Solution code:
import math
x,y  = map(int,input().split())
print(math.floor(math.log2(y//x)) + 1)

Submission status: Wrong Answer

Solution code:

def main():
    f, t = [int(v) for v in input().split(' ')]
    count = 0
    d = 1
    while True:
        tmp = f * 2
        if tmp > t:
            break
        count += 1
        print(tmp)
        d += 1
        f = tmp
    print(count + 1)



if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math
x,y=map(int,input().split())
ans=x

while x<=y:
    x*=2
print(x//2)

Submission status: Wrong Answer

Solution code:
import math
x,y=map(int,input().split())
k=math.floor(math.log2(y/x))
print(k+1)

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())

ans = 1
while x * 2 ** ans < y:
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import math
x, y = map(int, input().split())
print(int(math.log(y/x)/math.log(2))+1)

Submission status: Wrong Answer

Solution code:
import math

x,y = map(int,input().split())
print(math.floor(math.log2(y//x))+1)

Submission status: Wrong Answer

Solution code:
import math

x,y = map(int,input().split())
print(math.floor(math.log2(y/x))+1)

Submission status: Wrong Answer

Solution code:
import math

x,y = map(int,input().split())

n = math.floor(math.log2(y/x))+1

print(n)

Submission status: Wrong Answer

Solution code:
import math
x,y=map(int,input().split())
print(math.floor(math.log2(y//x))+1)