#P1138. 第 k 小整数
第 k 小整数
Description
You are given positive integers. Find the -th smallest integer among the distinct values (count equal integers only once).
Input Format
The first line contains and ; starting from the second line are the positive integers, separated by spaces.
Output Format
Output the value of the -th smallest integer; if there is no solution, output NO RESULT.
10 3
1 3 3 7 2 5 1 2 4 6
3
Hint
Constraints: , , and all positive integers are less than .
Translated by ChatGPT 5
京公网安备 11011102002149号