#P2369. EXCEEDED WARNING A
EXCEEDED WARNING A
Description
There are some numbers, all non-negative integers less than , with a total count of . Please output the smallest numbers among them.
Beware of overflow, and note that Memory Limit = 4000 KiB.
Input Format
The first line contains two non-negative integers separated by a space: .
The next lines contain the randomly generated numbers, guaranteed to fit in a 32-bit integer.
Output Format
Output lines: the numbers described above, in ascending order from smallest to largest.
10 5
2
4
6
8
10
1
3
5
7
9
1
2
3
4
5
Hint
Constraints: , .
Translated by ChatGPT 5
京公网安备 11011102002149号