#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, ans = 1;
    cin >> n;
    vector<unsigned long long int> a;
    for (int i = 0; i < n; i++) {
      unsigned long long int x;
      cin >> x;
      a.push_back(x);
    }
    sort(a.begin(), a.end());
    for (int i = 0; i < n - 1; i++) {
      if (a[i] == a[i + 1]) {
        ans = 0;
        break;
      }
    }
    if (ans == 0)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
