Type: Default 1000ms 512MiB

【字符串】数字OR字符?

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.

Description

给出一个不多于n位(n<=1000)的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123

Input Format

一行一个整数

Output Format

三行

第一行 位数

第二行 用空格分开的每个数字,注意最后一个数字后没有空格

第三行 按逆序输出这个数

Sample

样例输入

12345

样例输出

5
1 2 3 4 5
54321

语法-字符串

Not Claimed
Status
Done
Problem
16
Open Since
2026-5-30 0:00
Deadline
2026-6-6 23:59
Extension
24 hour(s)