#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t, n;
  cin >> t;
  while (t--) {
    long long a, co = 0, c = 0, d = 0;
    cin >> n;
    map<long long, long long> m;
    bool x = false;
    for (long long j = 0; j < n; j++) {
      cin >> c;
      m[c]++;
      if (m[c] > 1) {
        x = true;
      }
    }
    if (x == true) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
