t = int(input())
for T in range(t):
    n = int(input())
    l = [int(x) for x in input().split()]
    l.sort()
    c = 0
    for i in range(n-1):
        if l[i] == l[i+1]:
            c += 1
            break
    if c == 0:
        print("No")
    else:
        print("Yes")

e1b7bc26f1983986d7c804f7a3c97fec8db04731
<mask token>

<mask token>
for T in range(t):
    n = int(input())
    l = [int(x) for x in input().split()]
    l.sort()
    c = 0
    for i in range(n - 1):
        if l[i] == l[i + 1]:
            c += 1
            break
    if c == 0:
        print('No')
    else:
        print('Yes')

t = int(input())
for T in range(t):
    n = int(input())
    l = [int(x) for x in input().split()]
    l.sort()
    c = 0
    for i in range(n - 1):
        if l[i] == l[i + 1]:
            c += 1
            break
    if c == 0:
        print('No')
    else:
        print('Yes')

t = int(input())
for T in range(t):
    n = int(input())
    l = [int(x) for x in input().split()]
    l.sort()
    c = 0
    for i in range(n-1):
        if l[i] == l[i+1]:
            c += 1
            break
    if c == 0:
        print("No")
    else:
        print("Yes")
