Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import math
  2. import sys
  3.  
  4. def find_m_y(m_x, n_list):
  5. m_y = m_x
  6. for m in n_list:
  7. m_y += m
  8. return m_y
  9.  
  10. K = int(input())
  11.  
  12. m_x = float(input())
  13.  
  14. measurements = 0
  15. for i in range(K):
  16.  
  17. n_list = list(map(float, input().split()))
  18. n_list_mod = []
  19. n = n_list.pop(0)
  20.  
  21. m_y = find_m_y(m_x, n_list)
  22. measurements += m_y
  23.  
  24. print(measurements / K)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement