Problem hidden on 2011-08-21 09:05:45 by [Trichromatic] XilinX
NUMAVG - Number Average
Numbers' Average
Given an array of integers, you are to find the average value for those numbers.
Input:
Each test case consists of two lines, the first line contains the array size T (1 <= T <= 1000), the second line contains the values V (1 <= V[i] <= 1000).
Input is terminated by (T=0)
Output:
For each test case, print the average value for those numbers, but without the decimal part.
Sample Input:
5
1 2 3 4 5
4
1 5 2 2
0
Sample Output:
3
2
Added by: | Sharaf |
Date: | 2011-08-20 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | C C++ 4.3.2 JAVA |