分离整数的各个数

Luogu
IDLGB2152
Time1000ms
Memory512MB
DifficultyP1
循环结构
给定一个整数 $n$,要求从个位开始分离出它的每一位数字。从个位开始按照从低位到高位的顺序依次输出每一位数字。 ## Input 输入一个整数 $n$ ($1 \le n \le 100\,000\,000$)。 ## Output 从个位开始按照从低位到高位的顺序依次输出每一位数字。数字之间以一个空格分开。 [samples]
Samples
Input #1
123
Output #1
3 2 1
API Response (JSON)
{
  "problem": {
    "name": "分离整数的各个数",
    "description": {
      "content": "给定一个整数 $n$,要求从个位开始分离出它的每一位数字。从个位开始按照从低位到高位的顺序依次输出每一位数字。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 524288
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB2152"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "给定一个整数 $n$,要求从个位开始分离出它的每一位数字。从个位开始按照从低位到高位的顺序依次输出每一位数字。\n\n## Input\n\n输入一个整数 $n$ ($1 \\le n \\le 100\\,000\\,000$)。\n\n## Output\n\n从个位开始按照从低位到高位的顺序依次输出每一位数字。数字之间以一个空格分开。\n\n[samples]...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments