#P9865. [POI 2021/2022 R2] lic
[POI 2021/2022 R2] lic
Background
Translated from POI2021~2022R2 Day1T2。
Problem Description
Define the “unfriendly numbers” of as the numbers satisfying 。
Now you are given the number 。You need to output the numbers starting from the -th number in the increasing order of its “unfriendly numbers”。
Input Format
One line with three numbers $n,k,c\ (2 \leq n \leq 10^{14}, 1 \leq k \leq 10^{14}, 1 \leq c \leq 10^5)$。
Output Format
Output numbers, representing the -th “unfriendly numbers” of 。
10 3 4
7 9 11 13
Hint
Explanation of the sample:
The “unfriendly numbers” of are in order。
The subtasks are as follows:
| Subtask ID | Special Property | Score |
|---|---|---|
| and | ||
| and | ||
| No special limits |
Here, is the maximum value in the output, and is the count of “unfriendly numbers” 。
Translated by ChatGPT 5