#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  do {
    long long int n;
    cin >> n;
    set<long long int> s;
    long long int b[n], a[n];
    for (long long int i = 0; i < n; i++) {
      cin >> b[i];
      s.insert(b[i]);
    }
    if (s.size() == n) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
    }
    t--;
  } while (t > 0);
  return 0;
}
