#P1045. 数字反转
数字反转
Background
数字反转
Special for beginners, ^_^
Description
输入一个正整数 n,使用 while 循环将其各位数字反转,输出反转后的数。
例如 1200 反转后为 21(前导零舍去)。
Format
Input
一行,一个正整数 n()。
Output
一行,一个整数,反转后的结果。
Samples
12345
54321
1200
21
Limitation
1s, 1024KiB for each test case.
相关
在下列比赛中: