#include <bits/stdc++.h>
using namespace std;
unsigned long long t, n, a[1001], i, tt1[1001], tt2[1001], k;
map<unsigned long long, short> dd;
bool tf;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    dd.clear();
    tf = false;
    for (i = 1; i <= n; ++i) {
      cin >> k;
      dd[k]++;
      if (dd[k] == 2 && !tf) {
        tf = true;
        cout << "YES\n";
      }
    }
    if (!tf) cout << "NO\n";
  }
  return 0;
}
