#C13156. Calculate Student Average Scores

    ID: 42663 Type: Default 1000ms 256MiB

Calculate Student Average Scores

Calculate Student Average Scores

You are given the number of students and for each student their name followed by three scores in Math, English, and Science. Your task is to compute the average score for each student using the formula:

\( \text{average} = \frac{\text{math} + \text{english} + \text{science}}{3} \)

The result must be rounded to two decimal places. Output the student's name and their average score on a separate line.

inputFormat

The input is read from standard input (stdin) and has the following format:

  • The first line contains an integer n representing the number of students.
  • Each of the following n lines contains the student's name followed by three numbers representing their scores in Math, English, and Science, separated by spaces. The scores may be integers or floating-point numbers.

outputFormat

For each student, output a line containing the student's name and their average score rounded to two decimal places, separated by a space. The output is written to standard output (stdout).

## sample
3
Alice 85 78 92
Bob 79 85 88
Charlie 93 81 87
Alice 85.00

Bob 84.00 Charlie 87.00

</p>