Advertisement
T-D-K

Untitled

Jun 6th, 2018
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. n = int(input())
  2. a = [0.0, 0.0, 0.0]
  3. for i in range(n):
  4.     data = input().split()
  5.     a[0] = a[0] + int(data[1])
  6.     a[1] = a[1] + int(data[2])
  7.     a[2] = a[2] + int(data[3])
  8. a[0] = a[0] / n
  9. a[1] = a[1] / n
  10. a[2] = a[2] / n
  11. print(str.join(" ", map(str, a)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement