#Z17103. 谁考了第k名
谁考了第k名
Description
In an exam, each student has a unique score. Given the student ID and score of each student, find the student ID and score of the student who ranks k-th.
Input Format
The first line contains two integers: the number of students n (1 ≤ n ≤ 100) and the rank k (1 ≤ k ≤ n).
The following n lines each contain a student ID (integer) and a score (floating-point number), separated by a space.
Output Format
Output the student ID and score of the k-th ranked student, separated by a space. (Note: Use %g to output the score).
5 3
90788001 67.8
90788002 90.3
90788003 61
90788004 68.4
90788005 73.9
90788004 68.4