Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. def main():
  2.     n = int(input())
  3.     mas = list(map(float, input().split()))
  4.     for i in range(n - 1):
  5.         mas2 = list(map(float, input().split()))
  6.         for i in range(len(mas)):
  7.             mas[i] += mas2[i]
  8.     n2 = 8
  9.     template = '{:.' + str(n2) + 'f}'
  10.     print(template.format(mas[0] / n), template.format(mas[1] / n), template.format(mas[2] / n))
  11. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement