← Back to List

6721번: Backward numbers ↗

Solutions

Python 3
130 B | 130 chars
for i in range(int(input())):
    a,b = input().split()
    a = a[::-1]
    b = b[::-1]
    print(int(str(int(a) + int(b))[::-1]))