#include <bits/stdc++.h>
using namespace std;
unsigned long long power(int x, unsigned int y) {
  if (y == 0)
    return 1;
  else if (y % 2 == 0)
    return power(x, y / 2) * power(x, y / 2);
  else
    return x * power(x, y / 2) * power(x, y / 2);
}
void Solve() {
  int n;
  cin >> n;
  vector<long long> b(n);
  set<long long> s;
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    s.insert(b[i]);
  }
  if (s.size() != n) {
    cout << "YES" << endl;
    return;
  } else {
    cout << "NO" << endl;
    return;
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) Solve();
}
