python版本:
def add(a, b):
if b == 0:
return a
sum = a ^ b
carry = (a & b) << 1
return add(sum, carry)
a, b = map(int, input().split())
print(add(a,b))
python版本:
def add(a, b):
if b == 0:
return a
sum = a ^ b
carry = (a & b) << 1
return add(sum, carry)
a, b = map(int, input().split())
print(add(a,b))