You are viewing a single comment's thread. Return to all comments →
for a in range(int(input())): n , k = map(int , input().split()) print(k-1 if ((k-1) | k) <= n else k-2)
xD
Seems like cookies are disabled on this browser, please enable them to open this website
Day 29: Bitwise AND
You are viewing a single comment's thread. Return to all comments →
xD