#C11824. Execution Time Analyzer
Execution Time Analyzer
Execution Time Analyzer
This problem requires you to analyze a series of execution times. Given an integer t representing the number of test cases and a list of t execution times, compute the following four values:
- Total execution time
- Average execution time (using floor division)
- Maximum execution time
- Minimum execution time
The average should be calculated using integer division (i.e., rounding down). Ensure that your program reads input from stdin and writes the result to stdout in the format specified.
inputFormat
The input consists of two lines:
- The first line contains a single integer t ($1 \leq t \leq 10^5$), indicating the number of test cases.
- The second line contains t space-separated integers representing the execution times.
outputFormat
The output should consist of a single line with four space-separated integers representing:
- Total execution time
- Average execution time (rounded down)
- Maximum execution time
- Minimum execution time
5
10 20 30 40 50
150 30 50 10