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