maximizing-xor: c++ implementation

This commit is contained in:
Dmitry Kokorin 2016-09-12 16:22:59 +03:00
parent 1bac478cb3
commit eedc533521
2 changed files with 23 additions and 0 deletions

View file

@ -18,5 +18,6 @@ if __name__ == "__main__":
R = int(input())
A, B, M = maxXor(L, R)
print("{}^{} = {}".format(A, B, M))
print("{}^{} = {}".format(bin(A), bin(B), bin(M)))