#include <bits/stdc++.h>
using namespace std;
void solve(int n) {
  int ar[n];
  bool ans = false;
  for (int i = 0; i < n; ++i) {
    cin >> ar[i];
  }
  sort(ar, ar + n);
  for (int i = 0; i < n; ++i) {
    if (ar[i] == ar[i + 1]) ans = true;
  }
  ans ? cout << "YES" : cout << "NO";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t, n;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    cin >> n;
    solve(n);
    cout << "\n";
  }
  return 0;
}
