Created
June 24, 2016 10:49
-
-
Save ryanthegiantlion/12b0bd3b9e25b87f4b026ee730db0de0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
T = int(sys.stdin.readline().strip()) | |
xor_bits = (1 << 32) - 1 | |
for i in xrange(T): | |
N = int(sys.stdin.readline().strip()) | |
print N ^ xor_bits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment