The question is:
Enter the student numbers, names, and grades of multiple students and output the name and number of the student with the highest grades
Input contains multiple groups of samples.
Each set of samples contains an integer N, representing N students.
Enter each student's student number, name, and grade on the next N lines.
If N = 0, the input is complete and this example does not need to be processed.
For each set of use cases, you should output the name and student number of the highest achiever in the sample group of N students on one line per output.
My idea of solving the problem:
No answer yet