#include <bits/stdc++.h>
using namespace std;
constexpr long long mod = 1e9 + 7;
constexpr long long inf = LLONG_MAX;
long long log2(long long);
template <typename T>
void dispv(vector<T> v);
void solve() {
  long long n;
  cin >> n;
  unordered_map<long long, long long> m;
  bool flag = false;
  vector<long long> k(n);
  for (auto &kk : k) {
    cin >> kk;
    ++m[kk];
    if (m[kk] > 1) flag = true;
  }
  if (flag)
    cout << "YES";
  else
    cout << "NO";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  srand(time(NULL));
  int T = 1, t = 1;
  cin >> T;
  while (T--) {
    solve();
    cout << "\n";
  }
  return 0;
}
template <typename T>
void dispv(vector<T> v) {
  for (auto d : v) cout << d << " ";
  cout << "\n";
}
long long log2(long long x) { return 64 - __builtin_clzl(x) - 1; }
