2026-03-17 22:36:44 +09:00

6 lines
181 B
Python

res = []
for _ in range(int(input())) :
input()
N = int(input())
res.append("NO" if sum([int(input()) for _ in range(N)]) % N else "YES")
print("\n".join(map(str, res)))