#K61922. Average Repair Times

    ID: 31417 Type: Default 1000ms 256MiB

Average Repair Times

Average Repair Times

You are given the repair records for several cars. For each car, you will be provided with a series of repair times in hours. Your task is to compute the average repair time for each car and output the result rounded to two decimal places.

Note: The average for each car should be computed using the formula \( \text{average} = \frac{\text{sum of repair times}}{\text{number of repairs}} \) and then rounded to two decimal places.

inputFormat

The first line of input contains an integer \(T\) representing the number of cars. Each of the following \(T\) lines describes one car in the following format:

car_id N time1 time2 ... timeN

Here, car_id is a string denoting the car's identifier, N is an integer representing the number of repair records for that car, followed by \(N\) integers each representing a repair time in hours.

outputFormat

For each car, output a line containing the car identifier, a space, and the average repair time (rounded to two decimal places). The output lines should be in the same order as the input.

## sample
3
car1 3 4 5 6
car2 4 10 10 10 10
car3 1 7
car1 5.00

car2 10.00 car3 7.00

</p>