#t24. 逐位分割并输出整数的各位数字
逐位分割并输出整数的各位数字
Split and Print the Digits
Problem Description
Write a program that, for an input integer, splits its digits from the most significant position and prints them one by one.
Input Format
The input gives a non-negative integer within the range of a long integer on one line.
Output Format
Print the digits of the integer from the most significant position, each digit followed by a space.
Sample Input
123456
Sample Output
1 2 3 4 5 6
Constraints
0 ≤ n ≤ 2^31 - 1