#include <bits/stdc++.h>
using namespace std;
int main() {
  int ilez;
  cin >> ilez;
  for (int aa = 0; aa < ilez; aa++) {
    int n;
    cin >> n;
    set<int> S;
    bool isOk = false;
    for (int i = 0; i < n; i++) {
      int tmp;
      cin >> tmp;
      if (S.count(tmp) > 0)
        isOk = true;
      else
        S.insert(tmp);
    }
    if (isOk)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
