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