Advertisement
Virtual_Universe

Честность

Apr 16th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. n = int(input())
  2. a = list(map(int,input().split()))
  3. for i in range(n):
  4.     if sum(a[0:i+1])%(i+1) == 0: print(sum(a[0:i+1])//(i+1))
  5.     else: print(-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement