| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 90 | 55 | 44 | 55.696% |
At a recent doctor's appointment, Brandon has been marked as being deficient in magnesium. His doctor has advised him to take exactly some number of picograms of magnesium a day. His doctor can prescribe pills that have any integer number of picograms of magnesium from one up to a maximum. Brandon doesn't like taking pills though, so he refuses any prescription that requires him to take too many pills in a day.
Your task is to find all prescriptions that Brandon could be given. Note that all pills prescribed to Brandon must have the same dosage.
The single line of input contains three integers $n,ドル $k$ and $p$ (1ドル \le n,k,p \le 10^{11}$), where $n$ is the number of picograms per day that Brandon must take, $k$ is the maximum amount in picograms of magnesium in any of the pills, and $p$ is the maximum number of pills per day that Brandon is willing to take.
On the first line, output a single integer, which is the number of prescriptions that Brandon could be given.
On each subsequent line, output a single integer, which is the number of picograms per pill in the prescription. Output the prescriptions in increasing order.
6 6 4
3 2 3 6
6 2 3
1 2
ICPC > Regionals > North America > North America Qualification Contest > ICPC North America Qualifier 2023 H번