Average - MarisaOJ: Marisa Online Judge

Average

Time limit: 1000 ms
Memory limit: 256 MB
Given an array $A$ with $n$ integer elements, calculate the average of the elements in the array. ### Input - The first line contains an integer $n$. - The second line contains $n$ integers $A_i$. ### Output - Print a real number representing the rounded average of the elements in the array to three decimal places. ### Constraints - $1 \le n \le 1000$ - $1 \le A_i \le 1000$ ### Sample Input: ``` 5 1 1 2 1 1 ``` Output: ``` 1.200 ```