Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
TopCoder SRM #665 Div2
class LuckyXor():
def construct(self, a):
for i in range(a+1, 101):
tmp = a ^ i
if tmp in [4, 44, 7, 77]:
return i
if i == 100:
return -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.