for a in range(int(input())):
    n = int(input())
    val = list(map(int,input().split()))
    b = set(val)
    if len(val) > len(b):
        print("Yes")
    else:
        print("No")
a6b410adf7688d820f22b4ee1183f714e8220818
<mask token>

for a in range(int(input())):
    n = int(input())
    val = list(map(int, input().split()))
    b = set(val)
    if len(val) > len(b):
        print('Yes')
    else:
        print('No')

for a in range(int(input())):
    n = int(input())
    val = list(map(int,input().split()))
    b = set(val)
    if len(val) > len(b):
        print("Yes")
    else:
        print("No")