Problem
Input format
The first line contains `n`. The next `n` lines each contain a student's name and three grades, separated by spaces. - `1 <= n <= 200` - grades are integers between `1` and `10` - the name has at most 30 characters and contains no spaces
Output format
Print a single line: the name of the student with the highest average, a space, then the average with two decimal places.
Example
3 Ionescu 8 9 10 Popescu 7 7 7 Avram 10 10 9
Avram 9.67
Stuck?
Use the Get Hint button in the action bar to reveal a guided hint.
💬 Discussion
Loading...No comments yet. Be the first to start the discussion!
Sample cases (from the problem)
Sample Case 1
3 Ionescu 8 9 10 Popescu 7 7 7 Avram 10 10 9
Avram 9.67
Solve it your way first
Community solutions unlock after you submit a passing solution. Don't peek.
Ready to solve this challenge?
Create a free account to write code, submit solutions, and track your progress.