#Z15319. 最高分数的学生姓名
最高分数的学生姓名
Description
Enter the number of students, then input each student's score and name. Determine the name of the student with the highest score.
Input Format
The first line contains a positive integer N (N ≤ 100), representing the number of students.
The following N lines each contain data in the format:
score name
Here, score is a non-negative integer less than or equal to 100, and name is a continuous string without spaces, with a maximum length of 20.
It is guaranteed that only one student will have the highest score.
Output Format
The name of the student who achieved the highest score.
5
87 lilei
99 hanmeimei
97 lily
96 lucy
77 jim
hanmeimei