Create a gist now

Instantly share code, notes, and snippets.

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
break
if i == 100:
return -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment