#D. 第K小整数

    Type: Default 1000ms 256MiB

第K小整数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

现有n个正整数,n<=10000,要求出这n个正整数的第k个最小整数(相同大小的整数只计算一次),k<=1000, n个正整数均小于30000。

输入

第一行为n和k,第二行开始为n个正整数的值,整数间用空格隔开。

输出

第k个最小整数的值;若无解,则输出“NO RESULT”。

样例输入

10 3
1 3 3 7 2 5 1 2 4 6

样例输出

3

周日c++18:30测试

Not Attended
Status
Done
Rule
OI
Problem
5
Start at
2023-10-15 15:00
End at
2023-10-15 18:00
Duration
3 hour(s)
Host
Partic.
17