Docoding OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
1047: C++语言 逆序输出五位整数 5.7
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:120
Solved:60
Submit
Submit Record
Statistics
ShowOff!
Description
给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123
Input
一个不大于5位的数字
Output
三行 第一行 位数 第二行 用空格分开的每个数字,注意最后一个数字后没有空格 第三行 按逆序输出这个数
Sample Input
Copy
12345
Sample Output
Copy
5 1 2 3 4 5 54321
HINT
哈姆雷特:数字还是字符?这是一个问题!
Source/Category
c++
基础
入门
逆序输出
Submit
Submit Record
Statistics
ShowOff!