def main(): n = int(input()) A = list(map(int, input().split())) c0 = 0 for a in A: if a == 0: c0 += 1 if 2 <= c0: return 0 elif c0 == 1 and not n % 2: return 0 elif not (c0 == 1 and n % 2): return 1 B = [] C = [] for a in A: if a < 0: B.append(-a) elif 0 < a: C.append(a) B.sort() C.sort() if not len(B) % 2: return 1 if B[0] != C[0]: return 1 if B[0] != B[len(B)//2]: return 1 if C[0] != C[len(C)//2]: return 1 for b in B + C: if b % B[0]: return 1 assert 0 return 0 for _ in range(int(input())): print("Yes" if main() else "No")