Masala #JA4F0SAICZ

Xotira 32 MB Vaqt 1000 ms Qiyinchiligi 1 %
14

  

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)?


Kiruvchi ma'lumotlar:

First line contains a number \(n\) (1 ≤ \(n\) ≤ \(10^6\))

Next \(n\) lines contain a number \(x\) each (1 ≤ \(|x|\) ≤ \(10^9\))


Chiquvchi ma'lumotlar:

Print the average aura change during \(n\) days. Round your answer up to \(10^{-6}\).


Misollar
# input.txt output.txt
1
5
70
-75
1000000000
0
67
200000012.4
Izoh:

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.

Yechimini yuborish
Bu amalni bajarish uchun tizimga kiring, agar profilingiz bo'lmasa istalgan payt ro'yxatdan o'tishingiz mumkin