#C10187. Analyze Response Times

    ID: 39364 Type: Default 1000ms 256MiB

Analyze Response Times

Analyze Response Times

You are given a list of response times for a series of requests. Your task is to compute the average response time (rounded to six decimal places), the maximum response time, and the minimum response time.

Mathematically, if the response times are given as \( t_1, t_2, \ldots, t_n \), then the average is computed as:

\( \text{average} = \frac{\sum_{i=1}^{n}t_i}{n} \)

Print the result in one line with the average (formatted to six decimal places), the maximum, and the minimum value separated by spaces.

inputFormat

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

  • The first line contains a single integer \( n \), the number of requests.
  • The second line contains \( n \) space-separated integers representing the response times in milliseconds.

outputFormat

Output a single line to standard output (stdout) containing three values:

  • The average response time (rounded to six decimal places).
  • The maximum response time.
  • The minimum response time.

The values should be separated by a single space.

## sample
5
200 300 250 400 150
260.000000 400 150