Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def s_b():
- t = int(input())
- arr = []
- for i in range(t):
- n = int(input())
- a = [int(x) for x in input().split()]
- s = sum(a) % n
- inc = (n-s) * s
- arr.append(inc)
- for el in arr:
- print(el)
- # s_b()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement