#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  set<long long int> s;
  long long int f = 0;
  for (long long int i = 0; i < n; i++) {
    long long int x;
    cin >> x;
    if (s.find(x) != s.end()) f = 1;
    s.insert(x);
  }
  if (f)
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  clock_t z = clock();
  long long int qc = 1;
  cin >> qc;
  for (long long int i = 1; i <= qc; i++) solve();
  fprintf(stderr, "Total Time:%.4Lf\n",
          (long double)(clock() - z) / CLOCKS_PER_SEC),
      fflush(stderr);
}
