#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  scanf("%d", &T);
  while (T--) {
    set<int> s;
    int n;
    scanf("%d", &n);
    bool flag = false;
    for (int i = 1; i <= n; i++) {
      int x;
      scanf("%d", &x);
      if (s.count(x)) flag = true;
      s.insert(x);
    }
    if (!flag)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
