Submit | All submissions | Best solutions | Back to list |
AVG - AVERAGE |
Given n numbers find the average of them.
Input
The first line consists of an integer t, the number of test cases. Each test case consists of 2 lines. In each test case the first line consists of an integer n, the count of numbers. The next line consists of n integers.
Output
For each test case print the average of the numbers without decimal places.
Example
Input: 2 5 1 2 3 4 5 3 2 1 1 Output: 3 1
Added by: | cegprakash |
Date: | 2011-03-06 |
Time limit: | 0.100s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |