#include <bits/stdc++.h>
int t;
int n;
int a[1007];
int main() {
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    for (int i = 1; i <= n; ++i) {
      scanf("%d", &a[i]);
    }
    std::sort(a + 1, a + n + 1);
    for (int i = 2; i <= n; ++i) {
      if (a[i] == a[i - 1]) {
        printf("YES\n");
        goto here;
      }
    }
    printf("NO\n");
  here:;
  }
  return 0;
}
