#include <bits/stdc++.h>
using namespace std;
const int maxn = 500010;
const long long Mod = 998244353;
int a[maxn];
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  ;
  int t;
  int n;
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
    }
    int f = 0;
    int j;
    for (int i = 1; i <= n; i++) {
      for (j = 1; j < i; j++) {
        if (a[j] == a[i]) {
          f = 1;
          break;
        }
      }
    }
    if (f)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
