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

PROGRAMMING:Output the name of the student with the highest score

Luz5年前 (2021-05-10)题库379
###Problem description
Enter the number of students, and then enter the score and name of each student to get the name of the student with the highest score.
###Enter a description
In the first line, enter a positive integer n (n < = 100) to indicate the number of students. Next, enter n lines. The format of each line is as follows:
Score Name
The fraction is a non negative integer and less than or equal to 100;
The name is a continuous string with no space in the middle and no more than 20 characters in length.
Data guarantee that there is only one student with the highest score.
###Output description
The name of the student who got the highest score.
###Sample input
```in
five
87 lilei
99 hanmeimei
97 lily
96 lucy
77 jim
```
###Sample output
```out
hanmeimei
```
###Title Source
Note: selected from openjudge website, online address: http://hljssyzx.openjudge.cn/2016/60/






answer:If there is no answer, please comment