AR2AVG - Input Array 2D and cal AVG

Allow user enter size n x m of array, then entry each element in array, show agv value

Input

n m

pt00 pt01 ....

pt10 pt11 ....

Output

avg

Example

Input:
2 3
1 2 3
4 5 6
Output:
3.500000

 


Added by:khanhvh
Date:2020-11-17
Time limit:1s-5s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.