#include <bits/stdc++.h>
using namespace std;
void pk() {
  long long n;
  cin >> n;
  long long arr[n];
  set<long long> s;
  long long temp;
  for (long long i = 0; i < n; i++) {
    cin >> temp;
    s.insert(temp);
  }
  if (s.size() == n) {
    cout << "NO"
         << "\n";
  } else {
    cout << "YES"
         << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  cin >> t;
  while (t--) {
    pk();
  }
}
