Masala #JA4F0SAICZ
Aura
Shohjahon decided to track how much aura he gains (or loses) in a single day on average. For that he decided to write down how much aura he gained (or lost) each day during \(n\) days.
Can you find the average aura gain (or loss)?
First line contains a number \(n\) (1 ≤ \(n\) ≤ \(10^6\))
Next \(n\) lines contain a number \(x\) each (1 ≤ \(|x|\) ≤ \(10^9\))
Print the average aura change during \(n\) days. Round your answer up to \(10^{-6}\).
| # | input.txt | output.txt |
|---|---|---|
| 1 |
5 70 -75 1000000000 0 67 |
200000012.4 |
To round the answer up to \(10^{-6}\) in Python, use round() function.
E.g: print(round(answer, 6)), which will print \(answer\) rounded up to 6 decimal places.