E. 练58.1 严格排名

    Type: Default 1000ms 64MiB

练58.1 严格排名

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.

Description

Given nn numbers, what is the strictly kk-th smallest number among them? The strictly kk-th smallest number refers to the kk-th smallest number after removing duplicates.

Input Format

The first line contains two integers nn and kk (1kn1051≤k≤n≤10^5).
The second line contains nn integers aa (1ai1091≤a_i≤10^9), representing the nn numbers.

Output Format

Output a single line containing an integer, representing the answer.
The input guarantees a solution.

Sample

5 3
1 2 3 2 4
3

20251018C班作业(3)

Not Claimed
Status
Done
Problem
5
Open Since
2025-10-23 0:00
Deadline
2025-10-30 23:59
Extension
24 hour(s)