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