#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 1;
const int M = 1e9 + 1e8;
map<long long, bool> mp;
void solve() {
  mp.clear();
  int n, q = 0;
  cin >> n;
  while (n--) {
    long long a;
    cin >> a;
    if (mp[a]) {
      q = 1;
    }
    mp[a] = 1;
  }
  if (q)
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  int t;
  cin >> t;
  while (t--) solve();
}
