Reverse the number

Given a positive integer, your task is to reverse the number and print its value multiplied by 2.
Input
Output
123
642
12
42
3
6

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue