#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    long long int b[n], arr[n];
    for (int i = 0; i < n; i++) {
      cin >> b[i];
      arr[i] = b[i];
    }
    sort(arr, arr + n);
    int flag = 0;
    for (int i = 0; i < n - 1; i++) {
      if (arr[i] == arr[i + 1]) flag = 1;
    }
    if (flag == 1)
      cout << "YES" << endl;
    else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
