aboutsummaryrefslogtreecommitdiff
path: root/challenge-121/abigail/python/ch-1.py
blob: 559b5e16d0ddc1c8da8b7fbac934e7304197a15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/opt/local/bin/python

#
# See ../README.md
#

#
# Run as: python ch-1.py < input-file
#

import fileinput

for line in fileinput . input ():
    [m, n] = map (lambda _: int (_), line . rstrip () . split (" "))
    print (m ^ (1 << (n - 1)))