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