#include <bits/stdc++.h>
using namespace std;
long long int start_up() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  return 0;
}
long long int static r = start_up();
void solve() {
  long long int n;
  cin >> n;
  set<long long int> s;
  for (long long int i = 0; i < n; i++) {
    long long int x;
    cin >> x;
    s.insert(x);
  }
  if (n == s.size()) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
  }
}
signed main() {
  long long int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
