#C14677. Best Student
Best Student
Best Student
You are given the record of students along with their scores in various subjects. Your task is to determine the student with the highest average score.
The average score for a student is computed using the formula:
\( \text{average} = \frac{\text{sum of scores}}{\text{number of scores}} \)
If two or more students have the same average score, output the one that appears first in the input.
This problem will test your ability to process input, perform arithmetic calculations, and output the correct result. Read the input from stdin
and print the answer to stdout
.
inputFormat
The first line of the input contains a single integer n
representing the number of students.
For each student, the input is given in the following format:
1. A line containing the student's name (a string).
2. A line containing an integer m
denoting the number of scores for that student.
3. A line with m
space-separated integers representing the scores.
outputFormat
Output the name of the student with the highest average score on a single line.
## sample1
Alice
3
90 80 85
Alice