Skip to content

Instantly share code, notes, and snippets.

@gudnm
Last active August 19, 2016 15:26
Show Gist options
  • Save gudnm/a643ce22c0699a584ffd06805a366138 to your computer and use it in GitHub Desktop.
Save gudnm/a643ce22c0699a584ffd06805a366138 to your computer and use it in GitHub Desktop.
RC Code Dojo Aug 16 2016
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