#B. 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.

循环while

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2024-4-27 17:15
End at
2024-5-12 17:15
Duration
360 hour(s)
Host
Partic.
6