#include <bits/stdc++.h>
using namespace std;
long long t, n;
bool compromised;
long long temp;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  map<long long, long long> b;
  cin >> t;
  while (t--) {
    cin >> n;
    b.clear();
    compromised = 0;
    for (long long i = 0; i < n; i++) {
      cin >> temp;
      if (compromised) {
        continue;
      }
      if (b.count(temp) != 0) {
        compromised = 1;
      } else {
        b.insert(pair<long long, long long int>(temp, temp));
      }
    }
    if (compromised) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
