newton/solutions/python/1472B.py

15 lines
307 B
Python
Raw Normal View History

2025-01-11 11:41:29 +00:00
t = int(input())
for _ in range(t):
count = int(input())
weights = [int(x) for x in input().split(" ")]
if count % 2 != 0 and min(weights) == max(weights):
print("NO")
continue
elif sum(weights) % 2 != 0:
print("NO")
continue
else:
print("YES")