#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> v(n);
    int i, flag = 1;
    for (i = 0; i < n; i++) cin >> v[i];
    sort(v.begin(), v.end());
    for (i = 1; i < n; i++) {
      if (v[i] == v[i - 1]) {
        cout << "YES\n";
        flag = 0;
        break;
      }
    }
    if (flag) cout << "NO\n";
  }
  return 0;
}
