#C1746. Reverse Number Sum
Reverse Number Sum
Reverse Number Sum
Given a list of numbers written in reverse notation, your task is to convert each to its correct decimal value and compute the sum. The reversal process simply flips the order of digits. For instance, the reversed number (321) corresponds to (123), and (021) corresponds to (120). The input consists of an integer (T) followed by (T) lines, each containing a reversed number. Your program should output a single integer representing the overall sum of these corrected numbers.
inputFormat
The first line contains an integer (T) (1 ≤ (T) ≤ 10^5), representing the number of test cases. Each of the following (T) lines contains a string representing a number in reverse notation. The number may have leading zeros.
outputFormat
Output a single integer – the sum of all numbers after reversing each to obtain its correct decimal value.## sample
1
321
123
</p>