#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, bool> vis;
  int q;
  cin >> q;
  while (q--) {
    vis.clear();
    int n, x;
    bool ans = false;
    cin >> n;
    while (n--) {
      cin >> x;
      if (ans) continue;
      if (vis[x])
        ans = true;
      else
        vis[x] = true;
    }
    cout << (ans ? "YES" : "NO") << endl;
  }
  return 0;
}
