#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tc;
  cin >> tc;
  while (tc--) {
    int n;
    cin >> n;
    set<int> s;
    for (int i = 0; i < n; i++) {
      int temp;
      cin >> temp;
      s.insert(temp);
    }
    if (s.size() != n)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
