n = int(input())
while n:
list1=list(map(int,input().split()))
list1.pop(0)
list1.sort()
zt=0
if len(list1)>1:
t=list1[1]-list1[0]
for i in range(2,len(list1)):
if t != list1[i]-list1[i-1]:
zt=1
if zt:
print('no')
else:
print('yes')
else:
print('yes')
n=n-1
0.0分
0 人评分