def main(): t = int(input()) for _ in range(t): n = int(input()) nums = list(map(int, input().split())) total = sum(nums) odd_sum = sum(nums[0::2]) # 1,3,5,...位 even_sum = sum(nums[1::2]) # 2,4,6,...位 # 最终公共值必须是整数 if total % n != 0: print("NO") continue avg = total // n odd_cnt = (n + 1) /...