Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- a = [0.0, 0.0, 0.0]
- for i in range(n):
- data = input().split()
- a[0] = a[0] + int(data[1])
- a[1] = a[1] + int(data[2])
- a[2] = a[2] + int(data[3])
- a[0] = a[0] / n
- a[1] = a[1] / n
- a[2] = a[2] / n
- print(str.join(" ", map(str, a)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement