时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld
题目描述
Reversed number is a number written in arabic numerals but the order of digits is reversed. The first digit becomes last and vice versa. And all the leading zeros are omitted.
For example: the reversed number of 1234 is 4321. The reversed number of 1000 is 1.
We define reversed number of

as
%5C)
. Given you two positive integers

and

, you need to calculate the reversed sum:
%20%2B%20f(B))%5C)
.
输入描述:
The first line of the input gives the number of test cases,
.
test cases follow.
For each test case, the only line contains two positive integers:
and
. (
)
输出描述:
For each test case, output a single line indicates the reversed sum.