#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    map<int, int> a;
    cin >> n;
    bool ok = false;
    while (n--) {
      int x;
      cin >> x;
      a[x]++;
    }
    for (auto i = a.begin(); i != a.end(); i++)
      if (i->second > 1) ok = true;
    cout << (ok ? "YES" : "NO");
    cout << "\n";
  }
  return 0;
}
