Docoding OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
1888: 【信息学奥赛一本通】分离整数的各个数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:207
Solved:161
Submit
Submit Record
Statistics
ShowOff!
Description
给定一个整数
n(1≤n≤100000000)
,要求从个位开始分离出它的每一位数字。从个位开始按照从低位到高位的顺序依次输出每一位数字。
Input
输入一个整数,整数在
1
到
100000000
之间。
Output
从个位开始按照从低位到高位的顺序依次输出每一位数字。数字之间以一个空格分开。
Sample Input
Copy
123
Sample Output
Copy
3 2 1
Source/Category
基础
循环
while
白银
Submit
Submit Record
Statistics
ShowOff!