#J0056. 【深基4.习3】[NOIP2011 普及组] 数字反转
【深基4.习3】[NOIP2011 普及组] 数字反转
Problem Description
Given an integer , please reverse the digits of this number to obtain a new number. The new number should also satisfy the common form of integers, meaning that unless the original number is zero, the highest digit of the reversed number should not be zero (see Example 2).
Input Format
An integer .
Output Format
An integer representing the reversed new number.
Sample
123
321
-380
-83
Constraints
Data Range
相关
在以下作业中: