#include <bits/stdc++.h>
using namespace std;
const int MAX = 100005;
const int mod = 1e9 + 7;
const int inf = 1e9 + 5;
int min(int a, int b) {
  if (a < b) return a;
  return b;
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  int T = 1;
  cin >> T;
  while (T--) {
    long long n;
    cin >> n;
    int a[n], b[n];
    int f = 0;
    map<long long, long long> m;
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      m[a[i]]++;
    }
    for (auto l : m) {
      if (l.second >= 2) {
        f = 1;
        break;
      }
    }
    if (f)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
}
