#include <bits/stdc++.h>
using namespace std;
inline char gc() {
  static char now[1 << 20], *S, *T;
  if (T == S) {
    T = (S = now) + fread(now, 1, 1 << 20, stdin);
    if (T == S) return EOF;
  }
  return *S++;
}
template <typename T>
inline void read(T& x) {
  x = 0;
  T f = 1;
  char ch = gc();
  for (; !isdigit(ch); ch = gc())
    if (ch == '-') f = -1;
  for (; isdigit(ch); ch = gc()) x = (x << 1) + (x << 3) + (ch ^ 48);
  x *= f;
}
int a[1010];
int work() {
  int n;
  read(n);
  for (int i = 1; i <= n; i++) read(a[i]);
  for (int i = 2; i <= n; i++)
    for (int j = 1; j < i; j++)
      if (a[i] == a[j]) return puts("YES"), 0;
  puts("NO");
  return 0;
}
int main() {
  int T;
  read(T);
  while (T--) {
    work();
  }
  return 0;
}
