User:Sridharinfinity/Programming Contests/Sphere Source/42

From Wikipedia, the free encyclopedia
# 42. Adding Reversed Numbers
# Problem code: ADDREV

for x in range( int(raw_input()) ):
    a,b = raw_input().split()
    a,b = map(list, (a,b))
    a.reverse()
    b.reverse()
    a,b = [int(''.join(x)) for x in (a,b)]
    c = list(str(a+b))
    c.reverse()
    c = int(''.join(c))
    print c