sol_id stringlengths 10 10 | problem_id stringlengths 6 6 | solution_text stringlengths 3 618k | problem_text stringlengths 0 18.4k |
|---|---|---|---|
s130806075 | p03479 | x, y = map(int, input().split())
ans = 0
while x <= y:
ans += 1
x *= 2
print(ans)
| 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... |
s596861155 | p03479 | x,y = (int(x) for x in input().split())
ans = 1
a = x
while a*2<=y:
a *= 2
ans += 1
print(ans)
| 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... |
s355291690 | p03479 | X,Y = map(int, input().split())
def sol(x,y):
count = 1
start = x
while True:
start += start
if start >y:
break
count +=1
print(count)
sol(X,Y)
| 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... |
s231129729 | p03479 | x, y = map(int, input().split())
n = 0
while True:
if x * (2 ** n) <= y:
n += 1
else:
break
print(n) | 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... |
s603245173 | p03479 | from collections import deque
X, Y = map(int, input().split())
que = deque()
que.append(X)
ans = 1
while que:
x = que.popleft()
nx = x * 2
if nx <= Y:
que.append(nx)
ans += 1
print(ans)
| 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... |
s525333524 | p03479 | from collections import defaultdict
def main():
X,Y = [int(x) for x in input().split()]
ans = 0
while X<=Y:
X *= 2
ans += 1
print(ans)
if __name__ == '__main__':
main()
| 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... |
s855928331 | p03479 | def main():
x, y = map(int, input().split())
r = 1
a = x
while True:
a *= 2
if a <= y:
r += 1
else:
break
print(r)
if __name__ == '__main__':
main()
| 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... |
s593098585 | p03479 | X,Y=map(int,input().split())
count=0
while(X*(2**count)<=Y):
count+=1
print(count) | 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... |
s125577400 | p03479 | X, Y = map(int, input().split())
cnt = 0
while X <= Y:
X *= 2
cnt += 1
else:
print(cnt) | 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... |
s940060938 | p03479 | def main():
x, y = map(int, input().split())
y_devided = y // x
y_devided_binary = format(y_devided, "b")
print(len(y_devided_binary))
if __name__ == "__main__":
main() | 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... |
s006388712 | p03479 | x,y=[int(x) for x in input().rstrip().split()]
ans=1
now=x
for i in range(x,y-1):
if now*2<=y:
now=now*2
ans+=1
else:
break
print(ans)
| 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... |
s792410694 | p03479 | X, Y = map(int, input().split())
cnt = 1
while True:
X *= 2
if X > Y:
break
cnt += 1
print(cnt) | 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... |
s932859448 | p03479 | X, Y = map(int, input().split())
Z = X
c = 0
while Z <= Y:
c += 1
Z = 2 * Z
print(c) | 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... |
s139890776 | p03479 | import heapq
from sys import stdin
input = stdin.readline
def main():
a,b = map(int, input().split())
ans = 0
while a <=b:
ans+=1
a*=2
print(ans)
if __name__ == '__main__':
main() | 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... |
s681470421 | p03479 | x, y = map(int, input().split())
ans = 0
while x <= y:
ans += 1
x *= 2
print(ans) | 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... |
s574917736 | p03479 | X,Y = map(int,input().split())
cnt = 0
while X <= Y:
X += X
cnt += 1
print(cnt) | 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... |
s988537627 | p03479 | x,y = map(int,input().split())
count = 1
ans = x
for i in range(10**19):
ans = ans*2
if ans <= y:
count += 1
else:
break
print(count) | 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... |
s388134067 | p03479 | X, Y = map(int, input().split())
ans = 1
a = X
while 2*a <= Y:
ans += 1
a *= 2
print(ans) | 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... |
s241232949 | p03479 | x,y = map(int,input().split())
c=x
a=[]
while c <= y:
a.append(c)
c *=2
print(len(a)) | 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... |
s597026208 | p03479 |
def main():
X, Y = map(int, input().split())
ret = 1
tmp = X
while Y>=tmp:
if tmp*2>Y:
break
else:
tmp = tmp * 2
ret += 1
print(ret)
if __name__ == '__main__':
main() | 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... |
s230877897 | p03479 | x, y = list(map(int, input().split()))
ans = 0
while x <= y:
ans += 1
x = x << 1
print(ans) | 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... |
s515430055 | p03479 | X,Y = map(int,input().split())
ans = 1
Z = X
while Z <= Y//2:
Z *= 2
ans += 1
print(ans) | 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... |
s525549752 | p03479 | x,y=map(int,input().split())
ans=[x]
while True:
tmp=ans[-1]*2
if tmp<=y:
ans.append(tmp)
else:
break
print(len(ans)) | 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... |
s429981763 | p03479 | x, y = map(int, input().split())
z = x * 2
count = 1
while z <= y:
count += 1
z = z * 2
print(count) | 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... |
s989840226 | p03479 | def main():
X, Y = map(int, input().split())
ans = 1
for _ in range(Y + 1):
if 2 * X <= Y:
X *= 2
ans += 1
else:
print(ans)
quit()
if __name__ == "__main__":
main()
| 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... |
s702403036 | p03479 | n,m=map(int,input().split())
ans=0
now=n
while now<=m:
ans+=1
now*=2
print(ans) | 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... |
s253823943 | p03479 | import sys
from collections import deque, Counter, defaultdict
from itertools import permutations
import heapq
def resolve():
X, Y = map(int, sys.stdin.readline().strip().split())
ans = 0
while X <= Y:
ans += 1
X <<= 1
print(ans)
if __name__ == "__main__":
resolve()
| 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... |
s360315623 | p03479 |
import sys
input = sys.stdin.readline
import math
import bisect
from collections import defaultdict
from collections import deque
from functools import lru_cache
MOD = 10**9+7
INF = float('inf')
def I(): return int(input().strip())
def S(): return input().strip()
def IL(): return list(map(int,input(... | 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... |
s528335478 | p03479 | x,y = map(int,input().split())
i = 0
while x <= y:
x = x*2
i += 1
print(i)
| 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... |
s073807146 | p03479 | n, m = map(int, input().split())
cnt = 0
while n <= m:
n *= 2
cnt += 1
print(cnt)
| 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... |
s805326457 | p03479 | X,Y = map(int,input().split())
ans = 1
for i in range(100):
X *= 2
if X > Y:
break
ans += 1
print(ans) | 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... |
s588258548 | p03479 | x,y = map(int,input().split())
maxx = y//x + 1
count = 0
for i in range(maxx):
if x*(2**i) <= y:
count += 1
else:
break
print(count) | 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... |
s760022455 | p03479 | X,Y = map(int,input().split())
ans = 0
while X <= Y:
X = X*2
ans += 1
print(ans)
| 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... |
s649531019 | p03479 | X, Y = map(int, input().split())
n = Y//X
ans = 0
while 2**ans <= n:
ans += 1
print(ans) | 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... |
s212195902 | p03479 | x,y = map(int,input().split())
i=x
c=1
while i <= y:
i*=2
c+=1
print(c-1) | 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... |
s995971036 | p03479 | X, Y = list(map(int,input().split()))
ans = 0
while X <= Y:
X *= 2
ans += 1
print(ans) | 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... |
s153498871 | p03479 | X, Y = list(map(int,input().split()))
if X == Y: print(1)
else:
ans = 0
while X <= Y:
X *= 2
ans += 1
print(ans) | 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... |
s263859556 | p03479 | x,y=map(int,input().split())
i=0
while x<=y:
i+=1
x*=2
print(i)
| 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... |
s792297429 | p03479 | x, y = map(int, input().split())
i = 0
while 2**i <= y//x:
i += 1
print(i) | 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... |
s584239231 | p03479 | x, y = map(int, input().split())
a = x
i = 1
while (a <= y):
a *= 2
if a > y:
break
i += 1
print(i) | 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... |
s704539354 | p03479 | x, y = map(int, input().split())
ans = 0
num = x
while num <= y:
ans += 1
num = num * 2
print(ans) | 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... |
s024023433 | p03479 | def func(x, y, count):
new_x = x * 2
if new_x > y:
return count
else:
new_count = count + 1
return func(new_x, y, new_count)
x, y = [int(i) for i in input().split()]
print(func(x, y, 1)) | 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... |
s539429865 | p03479 | x,y=map(int, input().split())
ans=x
i=0
while ans<=y:
ans*=2
i+=1
print(i) | 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... |
s371436451 | p03479 | x,y=map(int,input().split())
ans=[x]
tmp=x
while tmp<y:
if tmp*2<=y:
ans.append(tmp)
tmp=tmp*2
else:
break
print(len(ans)) | 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... |
s465514545 | p03479 | x,y = map(int,input().split())
t = 0
while x <= y:
x *= 2
t += 1
print(t) | 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... |
s241848536 | p03479 | X, Y = map(int, input().split())
ans = 0
while X <= Y:
ans += 1
X *= 2
print(ans)
| 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... |
s639774289 | p03479 | X, Y = map(int, input().split(' '))
count = 0
while X <= Y:
count += 1
X *= 2
print(count)
| 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... |
s565302743 | p03479 | a,b=map(int,input().split())
i=a
count=0
while i<=b:
i*=2
count+=1
print(count) | 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... |
s861427614 | p03479 | x, y = map(int, input().split())
ans = 1
while 2 * x <= y:
ans += 1
x *= 2
print(ans)
| 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... |
s178416361 | p03479 | x, y = map(int, input().split())
div = y // x
i = 0
while div >= pow(2, i):
i += 1
print(i) | 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... |
s029015654 | p03479 | a,b = list(map(int, input().split()))
cnt = 0
while b >= a:
a = a * 2
cnt += 1
print(cnt) | 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... |
s875542828 | p03479 |
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1
def main():
X,Y=map(int,input().split())
c=0
while X<=Y:
... | 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... |
s202415100 | p03479 | X,Y = map(int,input().split())
count = 0
Acount = X
while (Acount <= Y):
Acount *= 2
count += 1
print(count) | 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... |
s985676085 | p03479 | x, y = map(int, input().split())
cnt = 0
ai = x
for i in range(2**60):
if ai <= y:
cnt += 1
ai *= 2
else:
break
print(cnt) | 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... |
s061518466 | p03479 | X,Y = map(int, input().split())
cnt = 0
while X <= Y:
cnt += 1
X = 2*X
print(cnt) | 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... |
s481022148 | p03479 | x,y = map(int,input().split())
for i in range(61):
if y < x * 2**i:
print(i)
exit()
| 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... |
s327783418 | p03479 | x,y = map(int,input().split())
for i in range(61):
if y < x * 2**i:
print(i)
exit()
| 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... |
s392038464 | p03479 | x, y = map(int, input().split())
for i in range(1, 10000):
x *= 2
if x > y:
print(i)
break | 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... |
s458683713 | p03479 | A,B = list(map(int,input().split()))
ans = 1
for i in range(10**18):
if A * 2 <= B:
A *= 2
ans +=1
else:
print(ans)
exit() | 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... |
s690721280 | p03479 | x, y = map(int, input().split())
ans = 0
while x <= y:
x *= 2
ans += 1
print(ans) | 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... |
s383630639 | p03479 | def resolve():
x, y = map(int, input().split())
ans = 1
while True:
if x * 2 > y:
break
ans += 1
x *= 2
print(ans)
resolve() | 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... |
s609554750 | p03479 | X,Y = map(int,input().split())
cnt = 0
while True:
if X > Y:
break
X = X*2
cnt += 1
print(cnt) | 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... |
s006890947 | p03479 |
import sys
input = sys.stdin.readline
def IS(cb): return cb(input().strip())
def IL(cb): return [cb(s) for s in input().strip().split()]
def IR(cb, rows): return [IS(cb) for _ in range(rows)]
def ILL(cb, rows): return [IL(cb) for _ in range(rows)]
def solve():
X, Y = IL(int)
ans = 1
while Y // 2 >= X:
... | 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... |
s002348633 | p03479 | x,y=map(int,input().split())
count=0
while x<=y:
x=x*2
count+=1
print(count)
| 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... |
s755121119 | p03479 | x, y = map(int, input().split())
n = x
ans = 0
while n <= y:
n *= 2
ans += 1
print(ans)
| 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... |
s619019145 | p03479 | def resolve():
ans=1
x,y=map(int,input().split())
while True:
x*=2
if x>y:
print(ans)
break
ans+=1
resolve() | 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... |
s309453209 | p03479 | X,Y=[int(x) for x in input().rstrip().split()]
ans=[]
cnt=1
now=X
for i in range(1,Y+1):
now=now*2
if now<=Y:
cnt+=1
else:
break
print(cnt) | 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... |
s076086748 | p03479 | x,y = map(int,input().split())
nsum = x
ans = 1
while(nsum<=y):
nsum=nsum*2
if(nsum>y):
break
ans += 1
print(ans) | 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... |
s770748497 | p03479 | x,y=map(int,input().split());print((y//x).bit_length()) | 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... |
s161753735 | p03479 | a, b = map(int, input().split())
cnt=1
while True:
a=a*2
if(a>b):
print(cnt)
break
cnt+=1 | 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... |
s776672459 | p03479 | X, Y = map(int, input().split())
counter = 0
while X <= Y:
X *= 2
counter += 1
print(counter) | 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... |
s266243128 | p03479 | x,y=map(int,input().split())
tmp=x
for i in range(y+1):
tmp=x*2**i
if tmp >y:
print(i)
break
| 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... |
s442308588 | p03479 | x,y = map(int,input().split())
ans=0
while x<=y:
x*=2
ans+=1
print(ans) | 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... |
s377587539 | p03479 | X,Y=map(int,input().split())
ans=1
while True:
if X*(2**ans)<=Y:
ans+=1
else:
break
print(ans) | 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... |
s616519813 | p03479 | X, Y = map(int,input().split())
arr = []
arr.append(X)
while arr[-1] * 2 <= Y:
arr.append(arr[-1] * 2)
print(len(arr)) | 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... |
s855464502 | p03479 | import fractions
def lcm(x, y):
return (x * y) // fractions.gcd(x, y)
x, y = map(int,input().split())
if y < 2*x:
print(1)
exit()
li = [x, 2*x]
i = 0
while True:
x = lcm(li[i], li[i+1])*2
if x <= y:
li.append(x)
i += 1
else:
print(len(li))
exit() | 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... |
s196685168 | p03479 | x,y = map(int,input().split())
count = 0
while x <= y:
x = 2*x
count += 1
print(count)
| 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... |
s647549289 | p03479 | X, Y = map(int, input().split())
count = 1
while True:
X *= 2
if X <= Y:
count += 1
else:
break
print(count) | 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... |
s208572753 | p03479 | x, y = map(int, input().split())
cnt = 0
while x <= y:
x *= 2
cnt += 1
print(cnt) | 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... |
s244621775 | p03479 | x, y = list(map(int, input().split()))
count = 1
a = x
while a*2 <= y:
a *= 2
count += 1
print(count)
| 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... |
s607494286 | p03479 | x,y=map(int,input().split())
gift=[x]
x=2*x
while x<=y:
gift.append(x)
x*=2
print(len(gift)) | 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... |
s383994123 | p03479 | x, y = map(int, input().split())
cnt = 0
while x <= y:
x *= 2
cnt += 1
print(cnt)
| 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... |
s996269230 | p03479 | 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_... | 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... |
s386442978 | p03479 | from __future__ import print_function
import sys
sys.setrecursionlimit(500000)
import re
import array
import copy
import functools
import operator
import math
import string
import fractions
from fractions import Fraction
import collections
import itertools
import bisect
import random
import time
import heapq
from... | 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... |
s192923486 | p03479 | import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import collections
x,y = map(int,input().split())
cnt = 0
while True:
a = x*2**cnt
if a>y:
break
cnt+=1
print(cnt) | 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... |
s748267702 | p03479 | 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_... | 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... |
s370362714 | p03479 |
X, Y = map(int, input().split())
count = 0
while X <= Y:
X = X * 2
count += 1
print(count)
| 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... |
s513020831 | p03479 | X,Y = map(int,input().split())
ans = 0
while X <= Y:
X *= 2
ans += 1
print(ans)
| 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... |
s631024054 | p03479 | x, y = map(int, input().split())
c = 0
while x <= y:
c += 1
x *= 2
print(c)
| 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... |
s437882295 | p03479 | inf = 10**15
mod = 10**9+7
def getans(x,y):
count=1
while 2*x <= y:
x *= 2
count+=1
return count
x,y = map(int, input().split())
print(getans(x,y)) | 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... |
s879236998 | p03479 | X, Y = map(int, input().split())
a = 0
metar = True
while metar:
c = X * (2 ** a)
if c <= Y:
a += 1
else:
metar = False
print(a) | 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... |
s427470100 | p03479 | a,b = map(int, input().split())
c=0
while a<=b:
a*=2
c+=1
print(c) | 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... |
s206867140 | p03479 | x, y = map(int, input().split())
c=0
while(1):
if y>=x:
c+=1
x*=2
else:
break
print(c) | 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... |
s209518425 | p03479 |
X, Y = list(map(int, input().split()))
answer = 0
while X <= Y:
answer += 1
X *= 2
print(answer) | 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... |
s141930226 | p03479 | import sys
def IS(): return sys.stdin.readline().rstrip()
def II(): return int(IS())
def MII(): return list(map(int, IS().split()))
def MIIZ(): return list(map(lambda x: x-1, MII()))
INIT_VAL = 0
def DD2(d1,d2): return [[INIT_VAL]*d2 for _ in range(d1)]
def DD3(d1,d2,d3): return [DD2(d2,d3) for _ in range(d1)]
MOD=1... | 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... |
s825429729 | p03479 | MOD = 10 ** 9 + 7
INF = 10 ** 10
import sys
sys.setrecursionlimit(100000000)
dy = (-1,0,1,0)
dx = (0,1,0,-1)
def main():
X,Y = map(int,input().split())
ans = 0
power = 1
while power*X <= Y:
ans += 1
power *= 2
print(ans)
if __name__ == '__main__':
main() | 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... |
s387751474 | p03479 | x,y = map(int,input().split())
ans = 0
while x <= y:
x *= 2
ans += 1
print(ans) | 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... |
s365406163 | p03479 | x,y = map(int, input().split())
c = 1
for i in range(1000000000):
x *= 2
if (x<=y):
c += 1
else:
break
print(c) | 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... |
s659073922 | p03479 | import sys
x,y=map(int,input().split())
output=0
while True:
if x * (2**output) >y :
print(output)
sys.exit()
else:
output+=1
| 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... |
s598934421 | p03479 | x,y=map(int,input().split())
x2=x
icnt=0
while x2<=y:
x2*=2
icnt+=1
print(icnt)
| 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... |
End of preview. Expand in Data Studio
- Downloads last month
- 9