#P7303. [COCI 2018/2019 #1] Nadan
[COCI 2018/2019 #1] Nadan
Description
Nadan is a successful businessman. He often invests in software developers.
This year, he decided to distribute kuna (Croatian currency) to projects, such that each project receives at least kuna, and the amounts received are pairwise distinct and all are positive integers. The testdata guarantees that such a distribution always exists.
Input Format
The first line contains a positive integer .
The second line contains a positive integer .
Output Format
Output lines in total. The -th line should contain the amount allocated to the -th project.
100
5
10
30
20
5
35
200
1
200
100
4
21
36
12
31
Hint
Constraints
For of the testdata, .
For of the testdata, , .
Scoring
If, for a test case, there exist equal allocated amounts but the total sum is correct, then you can get points out of the full points for that test case.
This problem uses an unofficial self-written Special Judge, which can also be obtained in the attachments. Because of the Special Judge, please add a newline after the last number in your output. Hacks are welcome (you may send a private message or post directly).
Notes
The score for this problem follows the original COCI problem setting, with a full score of .
Translated from COCI2018-2019 CONTEST #1 T1 Nadan.
Translated by ChatGPT 5
京公网安备 11011102002149号