#include <bits/stdc++.h>
using namespace std;
int a[1005];
map<int, int> first;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    bool q = 1;
    cin >> n;
    first.clear();
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      if (first[a[i]] == 1) q = 0;
      first[a[i]] = 1;
    }
    if (!q)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
