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 xx x as ff f. Given you two positive integers AA A and BB B, you need to calculate the reversed sum: ff f.
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 x x x as f(x) f(x) f(x) . Given you two positive integers A A A and B B B , you need to calculate the reversed sum: f(f(A)+f(B)) f(f(A) + f(B)) f(f(A)+f(B)) .
(图片来源网络,侵删)