AtCoder Beginner Contest 101
翻译中…
Problem Statement
翻译中…
Let $S(n)$ denote the sum of the digits in the decimal notation of $n$. For example, $S(123) = 1 + 2 + 3 = 6$.
翻译中…
We will call an integer $n$ a Snuke number when, for all positive integers $m$ such that $m > n$, $\frac{n}{S(n)} \leq \frac{m}{S(m)}$ holds.
翻译中…
Given an integer $K$, list the $K$ smallest Snuke numbers.
翻译中…
Constraints
翻译中…
$1 \leq K$- The
$K$-th smallest Snuke number is not greater than$10^{15}$.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
K
翻译中…
Output
翻译中…
Print $K$ lines. The $i$-th line should contain the $i$-th smallest Snuke number.
翻译中…
样例
Input #1
10
Output #1
1
2
3
4
5
6
7
8
9
19
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。