#include <bits/stdc++.h>
using namespace std;
int a[351000];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int T;
  cin >> T;
  while (T--) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; ++i) {
      cin >> a[i];
    }
    sort(a + 1, a + 1 + n);
    bool fl = 1;
    for (int i = 2; i <= n; ++i) {
      if (a[i] == a[i - 1]) {
        fl = 0;
        break;
      }
    }
    if (fl)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
}
