#T606. 最高分数的学生姓名
最高分数的学生姓名
Description
Enter the number of students, then input each student's score and name, and output 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 are formatted as follows:
score name
The score is a non-negative integer and does not exceed 100.
The name is a continuous string without spaces and does not exceed 20 characters in length.
It is guaranteed that only one student has the highest score.
Output Format
The name of the student with the highest score.
```input1 5 87 lilei 99 hanmeimei 97 lily 96 lucy 77 jim```output1
hanmeimei
来源
CodesOnline