#T544. 第K小整数
第K小整数
Description
Given n positive integers, where n ≤ 10,000, find the k-th smallest integer among them (counting each unique integer only once). Here, k ≤ 1,000, and all integers are less than 30,000.
Input Format
The first line contains n and k. The second line lists the values of the n positive integers, separated by spaces.
Output Format
The value of the k-th smallest integer. If no such result exists, output "NO RESULT".
10 3
1 3 3 7 2 5 1 2 4 6
3
翻译结果
CodesOnline