#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t, n, m = 0;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; i++) {
      cin >> v[i];
    }
    sort(v.rbegin(), v.rend());
    for (int i = 0; i < n - 1; i++) {
      if (v[i] == v[i + 1]) {
        cout << "YES\n";
        m = 1;
        break;
      }
    }
    if (m == 0) cout << "NO\n";
    m = 0;
  }
}
