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