|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||256 MB||32||12||12||37.500%|
When I was at school, we were always very competitive; who can run fastest? Who gets best marks in tests? This problem gets you to help with one such challenge – who is tallest?
Input consists of a number of groups of people. The first line for each group contains a single integer, N, which is the number of people in the group. (0 < N <= 50). If N is 0, this marks the end of input.
N lines then follow, each containing data on one person, a single name followed by a height in metres which has 2 decimal places.
For each group of people, output a single line containing the name of the tallest person. Where two or more people in a group have the same height, list each of them on the same line, separated by spaces, in the order they appear in the input.
3 John 1.75 Mary 1.64 Sam 1.81 2 Jose 1.62 Miguel 1.58 0