#A. C++-循环while-对于给定的任意正整数(个位可为0),将其各个位上的数字分离并倒序输出

    Type: Default 1000ms 256MiB

C++-循环while-对于给定的任意正整数(个位可为0),将其各个位上的数字分离并倒序输出

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

Description

对于给定的任意正整数(个位可为0),将其各个位上的数字分离并倒序输出: 输入:123 输出:321 image

Format

Input

Output

Samples

123
321
12300
00321

Limitation

1s, 1024KiB for each test case.