fork download
  1. N=int(input())
  2. suma = 0
  3. for i in range (N):
  4. x = float(input())
  5. suma += x
  6. wynik = suma / N
  7. print(wynik)
Success #stdin #stdout 0.07s 14172KB
stdin
5
-6
-9
2
4
5
stdout
-0.8