#include <bits/stdc++.h>
using namespace std;
long long power(int base, long long p) {
  long long res = 1;
  while (p) {
    if (p & 1) {
      res *= base;
      --p;
    }
    base *= base;
    p /= 2;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> vec;
    for (int i = 0; i < (int)(n); ++i) {
      int x;
      cin >> x;
      vec.push_back(x);
    }
    sort((vec).begin(), (vec).end());
    int sz = unique((vec).begin(), (vec).end()) - vec.begin();
    if (sz == n)
      cout << "No" << '\n';
    else
      cout << "Yes" << '\n';
  }
  return 0;
}
