#include <bits/stdc++.h>
using namespace std;
int A[1001];
int main() {
  int t;
  scanf("%d", &t);
  for (int it = 0; it < t; it++) {
    int n;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
      scanf("%d", &A[i]);
    }
    sort(A, A + n);
    bool ok = true;
    for (int i = 1; i < n; i++) {
      if (A[i] == A[i - 1]) {
        ok = false;
        break;
      }
    }
    if (ok)
      printf("NO\n");
    else
      printf("YES\n");
  }
  return 0;
}
