13272 - Reversing Numbers
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
| Case 6 |
1 sec |
32 MB |
| Case 7 |
1 sec |
32 MB |
| Case 8 |
1 sec |
32 MB |
| Case 9 |
1 sec |
32 MB |
Description
There're two integers A and B, where B is the reverse number of A.
For example, B is 4321 if A=1234.
Please calculate the sum of A and B.
Input
A is a integer (0 < A < 10^9)
Output
Output A+B
Note that you need to print ‘\n’ at the end of the output.
Tags