Flip & Sum

Easy
math digit-manipulation reversal arithmetic
Problem Description

Reverse the digits of two numbers, add the reversed numbers together, then reverse the digits of the sum to get the final result.

Input Format
Two positive integers on separate lines.
Output Format
The final result after flip, sum, and flip operations.
Constraints
• 1 ≤ numbers ≤ 10^6
• Handle leading zeros after reversal
• Reverse means reverse digit order
• Example: 123 reversed is 321
• 100 reversed is 1 (leading zeros removed)
Sample Input/Output
Input:
123
100
Output:
223
Explanation

Reverse 123 → 321, reverse 100 → 1. Sum: 321 + 1 = 322. Reverse 322 → 223.

Solution Hints
45
Points
1000ms
Time Limit
64MB
Memory Limit
Code Editor
Register to Submit
Register to Access Code Editor

Create a free account to solve coding problems and track your progress.

Register Now
Feedback