aboutsummaryrefslogtreecommitdiff
path: root/challenge-140/abigail/python/ch-1.py
blob: 7002b13c03a8a40f1993261d8a3fa1acfc8eb28d (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 ():
    a, b = line . strip () . split (" ")
    print (bin (int (a, 2) + int (b, 2)) [2:])