#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, i;
    cin >> n;
    int arr[n];
    for (i = 0; i < n; i++) {
      cin >> arr[i];
    }
    map<int, int> m;
    for (i = 0; i < n; i++) {
      m[arr[i]]++;
    }
    int flag = 0;
    for (auto i : m) {
      if (i.second > 1) {
        flag = 1;
        break;
      }
    }
    if (flag) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
