#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1e6 + 1;
const int MOD = 1e9 + 7;
const int INF = 1e9;
const long long int LINF = 1e18;
const long long int N = 100001;
void snake_bite() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed;
}
void solve() {
  int n;
  cin >> n;
  vector<int> b(n);
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    mp[b[i]]++;
  }
  bool flag = false;
  for (int i = 0; i < n; i++) {
    if (mp[b[i]] > 1) {
      flag = true;
      break;
    }
  }
  if (flag)
    cout << "YES";
  else {
    cout << "NO";
  }
}
int main() {
  snake_bite();
  long int t;
  cin >> t;
  while (t--) {
    solve();
    cout << endl;
  }
}
