#C10263. Calculate Average Scores

    ID: 39449 Type: Default 1000ms 256MiB

Calculate Average Scores

Calculate Average Scores

Given a list of students with their respective test scores, compute the average score for each student. The average score is computed as \(\frac{\text{sum of scores}}{\text{number of scores}}\) and rounded to two decimal places. The output should list each student's name and their average score.

Note: Each student is guaranteed to have at least one score.

inputFormat

The first line contains an integer \(n\) representing the number of students. Each of the following \(n\) lines describes a student in the following format:

name m score1 score2 ... scorem

where name is a string (without spaces), m is the number of scores, and scorei are the individual test scores (integers or floats).

outputFormat

For each student, output a line containing the student's name and their average score (rounded to 2 decimal places), separated by a space.

## sample
3
Alice 3 85 90 78
Bob 3 72 88 91
Charlie 3 92 87 85
Alice 84.33

Bob 83.67 Charlie 88.00

</p>