#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t = 1;
  cin >> t;
  while (t--) {
    long long n, m;
    cin >> n;
    set<long long> s;
    for (long long i = 0; i < n; i++) {
      long long a;
      cin >> a;
      s.insert(a);
    }
    if (s.size() == n)
      cout << "NO";
    else
      cout << "YES";
    cout << "\n";
  }
  return 0;
}
