#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long test;
  cin >> test;
  while (test--) {
    long long n;
    cin >> n;
    vector<long long> b(n);
    for (long long i = 0; i < n; i++) cin >> b[i];
    bool same = false;
    map<long long, long long> mp;
    for (long long i = 0; i < n; i++) {
      if (mp[b[i]]) {
        same = true;
        break;
      }
      mp[b[i]]++;
    }
    if (same)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
