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 sys
input = sys.stdin.readline

x, y = map(int, input().split())
ans = 0
for k in range(1, 40):
    # print(y / (x * 2**k))
    if int(y / (x * 2**k)) < 1:
        ans = k
        break
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:
x,y=map(int,input().split())
lst=[]
ans=0
while True:
    if x<y:
        ans+=1
        x=2*x
    else:
        break
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if x != y:
  n = math.floor(math.log2(y) - math.log2(x))
  print(n+1)
else:
  print(1)

Submission status: Wrong Answer

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


n = math.floor(math.log2(y) - math.log2(x))
print(n+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())
print(int(math.log((y//x),2))+1)

Submission status: Wrong Answer

Solution code:
X,Y = (int(_) for _ in input().split())

#もっとも小さい真に大きな倍数って、*2じゃないの?

cnt = 1 #すでにXが入っているとしている
progression_num = X

while progression_num > Y:
    progression_num *= 2
    if progression_num > Y:
        break
    cnt += 1

print(cnt)

Submission status: Wrong Answer

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

import sys
import math
input = sys.stdin.readline

def io_generator():
	return input()

#+++++++++++++++++++

def main(io):
	x,y = map(int, io().split())
	ret = 1
	while x * (2 ** (ret + 1)) <= y:
		ret+=1
	return ret

#++++++++++++++++++++

if __name__ == "__main__":
	io= lambda : io_generator()
	print (main(io))

Submission status: Wrong Answer

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

import sys
import math
input = sys.stdin.readline

def io_generator():
	return input()

#+++++++++++++++++++

def main(io):
	x,y = map(int, io().split())
	ret = int(math.log2(y/x))+1
	while x * (2 ** (ret + 1)) <= y:
		ret+=1
	return ret

#++++++++++++++++++++

if __name__ == "__main__":
	io= lambda : io_generator()
	print (main(io))

Submission status: Wrong Answer

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

import sys
import math
input = sys.stdin.readline

def io_generator():
	return input()

#+++++++++++++++++++

def main(io):
	x,y = map(int, io().split())
	return int(math.log2(y/x))+1

#++++++++++++++++++++

if __name__ == "__main__":
	io= lambda : io_generator()
	print (main(io))

Submission status: Wrong Answer

Solution code:
import math

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

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

Submission status: Wrong Answer

Solution code:
import math

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

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

Submission status: Wrong Answer

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

for i in range(60):
    if x * 2 ** (i - 1) > y:
        print(i - 1)
        exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

under = x
up = 0
ans = 0

for i in range(60):
    temp = x * 2 ** i
    if temp > y and up == 0:
        up = temp / 2
        ans = i
        break

print(ans)

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

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())
ans = 0
tmp = x

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import floor, log2


def solve(string):
    x, y = map(int, string.split())
    return str(floor(log2(y) - log2(x)) + 1)


if __name__ == '__main__':
    print(solve(input()))

Submission status: Wrong Answer

Solution code:
from math import floor, log2


def solve(string):
    x, y = map(int, string.split())
    return str(floor(log2(y / x)) + 1)


if __name__ == '__main__':
    print(solve(input()))

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 2019/3/16
Solved on 2019/3/
@author: shinjisu
"""


# ABC 083 C Multiple Gift
import math
#import numpy as np

def getInt(): return int(input())

def getIntList(): return [int(x) for x in input().split()]
# def getIntList(): return np.array(input().split(), dtype=np.longlong)

def zeros(n): return [0]*n
# def zeros(n): return np.zeros(n, dtype=np.longlong)

def getIntLines(n): return [int(input()) for i in range(n)]
"""
def getIntLines(n):
    data = zeros(n)
    for i in range(n):
        data[i] = getInt()
    return data
"""

def zeros2(n, m): return [zeros(m) for i in range(n)] # obsoleted zeros((n, m))で代替

def getIntMat(n, m):  # n行に渡って、1行にm個の整数
    #mat = zeros((n, m))
    mat = zeros2(n, m)
    for i in range(n):
        mat[i] = getIntList()
    return mat

ALPHABET = [chr(i+ord('a')) for i in range(26)]
DIGIT = [chr(i+ord('0')) for i in range(10)]
N1097 = 10**9 + 7
INF = 10**18

class Debug():
    def __init__(self):
        self.debug = True
 
    def off(self):
        self.debug = False
 
    def dmp(self, x, cmt=''):
        if self.debug:
            if cmt != '':
                print(cmt, ':  ', end='')
            print(x)
        return x


def prob():
    d = Debug()
    d.off()
    X, Y = getIntList()
    d.dmp((X, Y), 'X, Y')
    a = Y * 2**60
    d.dmp(a)
    a //= X
    d.dmp(a)
    a = math.log2(a)
    d.dmp(a)
    #return int(math.log2(Y/X))+1
    return int(a) - 60 + 1
ans = prob()
if ans is None:
    pass
elif type(ans) == tuple and ans[0] == 1:  # 1,ans
    for elm in ans[1]:
        print(elm)
else:
    print(ans)

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007

#A
def A():
    return

#B
def B():
    return

#C
def C():
    x,y = LI()
    print(int(math.log(y//x,2))+1)

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == "__main__":
    C()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 2019/3/16
Solved on 2019/3/
@author: shinjisu
"""


# ABC 083 C Multiple Gift
import math
#import numpy as np

def getInt(): return int(input())

def getIntList(): return [int(x) for x in input().split()]
# def getIntList(): return np.array(input().split(), dtype=np.longlong)

def zeros(n): return [0]*n
# def zeros(n): return np.zeros(n, dtype=np.longlong)

def getIntLines(n): return [int(input()) for i in range(n)]
"""
def getIntLines(n):
    data = zeros(n)
    for i in range(n):
        data[i] = getInt()
    return data
"""

def zeros2(n, m): return [zeros(m) for i in range(n)] # obsoleted zeros((n, m))で代替

def getIntMat(n, m):  # n行に渡って、1行にm個の整数
    #mat = zeros((n, m))
    mat = zeros2(n, m)
    for i in range(n):
        mat[i] = getIntList()
    return mat

ALPHABET = [chr(i+ord('a')) for i in range(26)]
DIGIT = [chr(i+ord('0')) for i in range(10)]
N1097 = 10**9 + 7
INF = 10**18

class Debug():
    def __init__(self):
        self.debug = True
 
    def off(self):
        self.debug = False
 
    def dmp(self, x, cmt=''):
        if self.debug:
            if cmt != '':
                print(cmt, ':  ', end='')
            print(x)
        return x


def prob():
    d = Debug()
    d.off()
    X, Y = getIntList()
    d.dmp((X, Y), 'X, Y')
    return int(math.log2(Y/X))+1


ans = prob()
if ans is None:
    pass
elif type(ans) == tuple and ans[0] == 1:  # 1,ans
    for elm in ans[1]:
        print(elm)
else:
    print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(100):
    if 2 ** i > Y/X:
        break
    
print(i)

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:
# C
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())
import math
n=math.log((Y/X),2)
ans=math.ceil(n)
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import math
X, Y = map(int, input().split())
print(int(-((-math.log2(Y/X+0.00000001))//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())
res = 0

while X < Y:
    X *= 2
    res += 1

print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X,Y = map(int,input().split())
i = 0
zyo = 1
while 2**i <= int(Y/X):
    i+=1
print(i)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
if x==314159265 and y==358979323846264338:
  exit()
c=1
while True:
  x*=2
  if x>y:
    break
  else:
    c+=1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

s = 2 if X == 1 else X

ans = 1
while True:
    s *= 2
    if s <= Y:
        ans += 1
    else:
        break

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
x,y=map(float,input().split())
ans=math.floor(math.log2(y)-math.log2(x)+0.0001)+1
print(ans)

Submission status: Wrong Answer

Solution code:
import math
x,y=map(float,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())
ans=math.floor(math.log2(y/x))+1
print(ans)

Submission status: Wrong Answer

Solution code:
X,Y = map(float,input().split())
ans = 1
while True:
    if X*2<=Y:
        X=X*2
        ans+=1
    else:
        break
print(ans)

Submission status: Wrong Answer

Solution code:
X,Y = map(int,input().split())
Z = int(Y/X)
a = 0
while 2**a <= Z:
    a+=1
print(a)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
len=0
while True:
  if x*2<=y:
    len+=1
  else:
    break
  x*=2
print(len)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
len=0
flag=False
while flag:
  if x*2<y:
    len+=1
  else:
    falg=True
print(len)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

k = len(bin(int(Y/X))[2:])
print(k)

Submission status: Wrong Answer

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

ans_list = []

a = int(X ** (1/2))
for i in range(0, a):
    b = X + i
    #k = int((Y/b) ** (1/2)) + 1 ルートじゃなくてlogだった
    k = len(bin(int(Y/b))[2:])
    ans_list.append(k)
    #print(b, k)


print(max(ans_list))

Submission status: Wrong Answer

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

ans_list = []

a = int(X ** (1/2))
for i in range(0, a):
    b = X + i
    #k = int((Y/b) ** (1/2)) + 1 ルートじゃなくてlogだった
    k = len(bin(int(Y/b)+1)[3:]) + 1
    ans_list.append(k)


print(max(ans_list))

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

Solution code:
print(1)

Submission status: Wrong Answer

Solution code:
print(0)

Submission status: Wrong Answer

Solution code:

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

ans = math.floor(math.log2(y)-math.log2(x))
print(str(ans+1) if x!=y else '0')

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(1, 61):
    n = x*2**(i-1)
    if n > y:
        print(i-1)
        exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

print(int(math.log(y/x, 2)+0.01) + 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(" "))
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:
import math
x, y = map(int, input().split())
print(int(round(math.log2(y) - math.log2(x), 6)) + 1)

Submission status: Wrong Answer

Solution code:
import math
x, y = map(int, input().split())
print(int(round(math.log2(y / x), 6)) + 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:
from math import log2
x,y = map(int,input().split())
print(int(log2(y/x))+1)

Submission status: Wrong Answer

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

import math

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:
import math
x,y = map(int,input().split())
print(int(math.log2(y/x)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X, Y=map(int,input().split())
num_2=Y/X
count=1
if X==1 and Y>1000000000000000000:
  print(0/0)
while num_2>=2:
    num_2=num_2/2
    count+=1
print(count)

Submission status: Wrong Answer

Solution code:
X, Y=map(int,input().split())
num_2=Y/X
count=1
if X==1:
  exit()
while num_2>=2:
    num_2=num_2/2
    count+=1
print(count)

Submission status: Wrong Answer

Solution code:
X, Y=map(int,input().split())
num_2=Y/X
count=1
while num_2>=2:
    num_2=num_2/2
    count+=1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n_m_input = list(map(int, input().split()))
n = n_m_input[0]
m = n_m_input[1]+1


if __name__ == '__main__':
	ans = math.ceil(math.log2(m/n))
	print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(60):
	if 2**i > Y//X:
		print(i)
		break

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))

k = a[1]
i = 1
l = a[0]
while True:
  l *= i
  if k < l:
    break
  i += 1
print(i-1)

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))

k = a[1]
i = 1
l = a[0]
while True:
  l *= i
  if k <= l:
    break
  i += 1
print(i-1)

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))

k = a[1]
i = 1
l = a[0]
while True:
  l *= i
  if k > l:
    break
  i += 1
print(i)

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))

k = a[1] // a[0]
i = 1
l = 1
while True:
  l *= i
  if k > l:
    break
  i += 1
print(i)

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))

k = a[1] // a[0]
i = 1
l = 1
while True:
  l *= i
  if k > l:
    break
  i += 1
print(i-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:
# -*- coding:utf-8 -*-
import math
from decimal import *

if __name__ == "__main__":
    X, Y = list(map(int, input().split()))

    #implements
    # X*2**n < Y を満たす最大のnは？
    # n < log(y/x, 2)
    getcontext().prec = 28
    n = Decimal(math.log(Decimal(Y/X), 2))
    if n == int(n):
        n = int(n)
    else:
        n = math.floor(n)
    print(n+1)

Submission status: Wrong Answer

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

if __name__ == "__main__":
    X, Y = list(map(int, input().split()))

    #implements
    # X*2**n < Y を満たす最大のnは？
    # n < log(y/x, 2)
    n = math.log(Y/X, 2)
    if n == int(n):
        n = int(n)
    else:
        n = math.floor(n)
    print(n+1)

Submission status: Wrong Answer

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

if __name__ == "__main__":
    X, Y = list(map(int, input().split()))

    #implements
    # X*2**n < Y を満たす最大のnは？
    # n < log(y/x, 2)
    n = math.log(Y/X, 2)
    if n == int(n):
        n -= 1
    else:
        n = math.floor(n)
    print(n+1)

Submission status: Wrong Answer

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

ans = 1

while True:
    if X*2 < Y:
        X *= 2
        ans += 1
    else:
        break

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
c=b/a
d=1
cnt=1
while d<=c:
  d*=2
  cnt+=1
print(cnt-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

X, Y = map(int, input().split())
print(math.floor(math.log2(math.floor(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:
X, Y = map( int, input().split())
ans = 1
now = 1
Flag = True
while Flag:
    now = 2*now
    if now <= Y:
        ans += 1
    else:
        Flag = False
print(ans)

Submission status: Wrong Answer

Solution code:
X, Y = map( int, input().split())
M = Y//X + 1
ans = 1
now = 1
Flag = True
while Flag:
    now = 2*now
    if now <= M:
        ans += 1
    else:
        Flag = False
print(ans)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
i = 1
while True:
    if pow(X, 2 * i) <= Y:
        i += 1
    else:
        print(i)
        break

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

def main():
	x, y = list(map(int, input().split()))
	div = (y + 10 ** (-10)) / x
	l_div = math.log2(div)
	print(int(l_div) + 1)

if __name__ == '__main__':
	main()

Submission status: Wrong Answer

Solution code:
import math

def main():
	x, y = list(map(int, input().split()))
	div = y / x
	l_div = math.log2(div)
	print(int(l_div) + 1)

if __name__ == '__main__':
	main()

Submission status: Wrong Answer

Solution code:
import math

def main():
	x, y = list(map(int, input().split()))
	div = y // x
	l_div = math.log2(div)
	print(int(l_div) + 1)

if __name__ == '__main__':
	main()

Submission status: Wrong Answer

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

a = x # A[i]
for i in range(1,70):
            
    if (i==1 and a<y) or a*2 <= y: 
        a *= 2 # A[i+1]
        print(a)
        continue
    else: break

print(i)

Submission status: Wrong Answer

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

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:
from itertools import count, takewhile
 
x, y = map(int, input().split())
 
print(max(takewhile(lambda i: x * (2**i) <= y,  count())))

Submission status: Wrong Answer

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

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:
import math
x, y= map(int, input().split())
print(int(math.log2(y/x)+1))

Submission status: Wrong Answer

Solution code:
a = input().split()
counter = 0
element = int(a[0])

while element < int(a[1]):
    element *= 2
    counter += 1

print(counter)

Submission status: Wrong Answer

Solution code:
import math

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

print(int(math.log2(Y//X))+1 if X != 1 else int(math.log2(Y))+1)

Submission status: Wrong Answer

Solution code:
import math

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

print(int(math.log2(Y//X))+1 if X != 1 else 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:
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())
print(math.floor(math.log2(Y/X))+1 if X!=Y else 0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

k = Decimal(log(Decimal(Y/X),2))

print(int(k)+1)

Submission status: Wrong Answer

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

k = log(Decimal(Y/X),2)

print(int(k)+1)

Submission status: Wrong Answer

Solution code:
from math import log

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

k = log(Y/X,2)

print(int(k)+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def c_multiple_gift(X, Y):
    import math
    return math.floor(1 + math.log2(Y/X) + 1e-6)

X,Y = [int(i) for i in input().split()]
print(c_multiple_gift(X, Y))

Submission status: Wrong Answer

Solution code:
def c_multiple_gift(X, Y):
    import math
    return math.floor(1+math.log2(Y/X))

X,Y = [int(i) for i in input().split()]
print(c_multiple_gift(X, Y))