#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  bool temp = false;
  map<long long, long long> dummy;
  cin >> n;
  long long arr[n];
  for (long long i = 0; i < (long long)(n); i++) {
    cin >> arr[i];
    dummy[arr[i]] += 1;
    if (dummy[arr[i]] > 1) {
      temp = true;
    }
  }
  if (temp) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long x;
  cin >> x;
  while (x--) solve();
  return 0;
}
