#include <bits/stdc++.h>
using namespace std;
string solve() {
  long long n;
  cin >> n;
  map<long long, long long> m;
  for (long long i = 0; i < n; i++) {
    long long p;
    cin >> p;
    m[p]++;
  }
  for (auto it = m.begin(); it != m.end(); it++) {
    if (it->second > 1) return "YES";
  }
  return "NO";
}
int32_t main() {
  long long t;
  cin >> t;
  while (t--) {
    cout << solve() << "\n";
  }
  return 0;
}
