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