Advertisement
T-D-K

Untitled

May 23rd, 2018
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. n = int(input())
  2. s = [0,0,0]
  3. for i in range(n):
  4.     b = input().split()
  5.     for j in range(1, 4):
  6.         s[j - 1] += int(b[j])
  7. for i in range(3):
  8.     s[i] //= n
  9. print(str(s[0]) + " " + str(s[1])+ " " + str(s[2]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement