#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int i, n, fl = 0;
    cin >> n;
    int *a = new int[n];
    for (i = 0; i < n; ++i) {
      cin >> a[i];
    }
    sort(a, a + n);
    for (i = 1; i < n; ++i) {
      if (a[i] == a[i - 1]) {
        fl = 1;
        break;
      }
    }
    if (fl == 1) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
}
