#include <bits/stdc++.h>
using namespace std;
void gareeb() {
  int n;
  cin >> n;
  int arr[n];
  set<int> s;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    s.insert(arr[i]);
  }
  cout << (int(s.size()) < n ? "YES" : "NO");
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t = 1;
  cin >> t;
  while (t--) {
    gareeb();
    cout << "\n";
  }
  return 0;
}
