#A. XHXMMMl3JIXaWg#'^)`
XHXMMMl3JIXaWg#'^)`
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Statement
Vasya has his favourite number . He wants to split it to some non-zero digits. It means, that he wants to choose some digits , such that for all and .
Vasya likes beauty in everything, so he wants to find any solution with the minimal possible number of different digits among . Help him!
Format
Input
The first line contains a single integer — the number that Vasya wants to split ( ).
Output
In the first line print one integer — the number of digits in the partition. Note that must satisfy the inequality . In the next line print digits separated by spaces. All digits must satisfy the inequalities .
You should find a partition of in which the number of different digits among will be minimal possible among all partitions of into non-zero digits. Among such partitions, it is allowed to find any. It is guaranteed that there exists at least one partition of the number into digits.
Sample
1
1
1
4
2
2 2
27
3
9 9 9
ShanghaiTech ACM 炸鱼杯
- 状态
- 已结束
- 规则
- OI
- 题目
- 46
- 开始于
- 2024-12-10 23:00
- 结束于
- 2024-12-15 13:00
- 持续时间
- 110 小时
- 主持人
- 参赛人数
- 112