-->
当前位置:首页 > 题库

PROGRAMMING:The story of Daben (7)

Luz5年前 (2021-05-10)题库846
The 22-year-old Ben is already a class assistant. After the beginning of the new semester, the annual scholarship evaluation is coming. As a responsible class assistant, Daben is determined to help the monitor of his class calculate their grades. It is known that there are n (1 < = n < = 150) students in Daben's class. Daben's job is to find out the k-th student among these n students, and record his student number and grades.
###Input format:
The first line has two integers, the number of students n (1 ≤ n ≤ 150), and K (1 ≤ K ≤ n) of the kth student.
Then there are n lines of data, each line includes a student number (integer) and a grade (floating-point number), separated by a space.
###Output format:
Output the student number and grade of the kth student, separated by a space( Note: please use% G to output results)
###Input example:
```in
5 3
90788001 67.8
90788002 90.3
90788003 61
90788004 68.4
90788005 73.9
```
###Output example:
```out
90788004 68.4
```







answer:If there is no answer, please comment