#include <bits/stdc++.h>
using namespace std;
const int N = 105;
int a[N];
int n, t, m;
int main() {
  cin >> t;
  while (t--) {
    cin >> n;
    unordered_map<int, int> map;
    bool flag = false;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      map[a[i]]++;
      if (map[a[i]] >= 2) flag = true;
    }
    if (flag)
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
