maximizing-xor: c++ implementation
This commit is contained in:
parent
1bac478cb3
commit
eedc533521
2 changed files with 23 additions and 0 deletions
|
|
@ -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)))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue