#K46042. CPU Utilization Analysis

    ID: 27888 Type: Default 1000ms 256MiB

CPU Utilization Analysis

CPU Utilization Analysis

You are given data for one or more test cases. For each test case, the input begins with an integer T representing the number of test cases. For each test case, the first line contains an integer N denoting the number of servers. This is followed by N lines, each line containing space-separated integers that represent the CPU utilization readings for that server.

Your task is to compute, for each server, the minimum and maximum CPU utilization values and the average CPU utilization. The average should be calculated as follows:

average=i=1kaik\text{average} = \frac{\sum_{i=1}^{k}a_i}{k}

where ai is the CPU utilization reading and k is the number of readings for that server. The average must be output with exactly two decimal places. Print the results for each server on a separate line in the format:

min max average

for each test case sequentially.

inputFormat

The first line of input contains an integer T representing the number of test cases.

For each test case:

  • The first line contains an integer N, the number of servers.
  • Then follow N lines; each line contains space-separated integers representing the CPU utilization values of a server.

outputFormat

For each test case, for every server, output a single line containing three values: the minimum, the maximum, and the average utilization, where the average is printed with two decimal places.

## sample
1
1
50
50 50 50.00

</p>