eolymp
bolt
Try our new interface for solving problems
Problems

A + B in the binary system

published at 3/5/19, 7:44:00 pm

Не совсем понятно почему для этой задачи сложность аж 36%

published at 1/9/23, 1:46:19 pm
a = open("input.txt","r")
b = open("output.txt","w")
d = []

for s in a:
    d.append(s)

print(str(bin((int(d[0],2)+int(d[1],2))))[2:],file=b)
a.close()
b.close()