#arc099b. D - Snuke Numbers
D - Snuke Numbers
Score : points
问题描述
令 表示整数 在十进制表示下的各位数字之和。例如,。
当对于所有大于 的正整数 ,满足 时,我们称整数 为 Snuke 数。
给定一个整数 ,请列出前 小的 Snuke 数。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Let denote the sum of the digits in the decimal notation of . For example, .
We will call an integer a Snuke number when, for all positive integers such that , holds.
Given an integer , list the smallest Snuke numbers.
Constraints
- The -th smallest Snuke number is not greater than .
Input
Input is given from Standard Input in the following format:
Output
Print lines. The -th line should contain the -th smallest Snuke number.
Sample Input 1
10
Sample Output 1
1
2
3
4
5
6
7
8
9
19
update @ 2024/3/10 17:17:45