def r(n):
s=0
while n>=1:
a=n%10
s=s*10+a
n/=10
return s
for i in range(input()):
x,y=raw_input().split()
print r(r(int(x))+r(int(y)))
s=0
while n>=1:
a=n%10
s=s*10+a
n/=10
return s
for i in range(input()):
x,y=raw_input().split()
print r(r(int(x))+r(int(y)))
No comments:
Post a Comment