Last active
August 19, 2016 15:26
-
-
Save gudnm/a643ce22c0699a584ffd06805a366138 to your computer and use it in GitHub Desktop.
RC Code Dojo Aug 16 2016
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = int(input()) | |
for _ in range(n): | |
a, b = map(int, input().split()) | |
while b > a: | |
b &= (b-1) | |
print(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment