#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, n, b;
  cin >> t;
  while (t--) {
    map<long long, long long> mp;
    map<long long, long long>::iterator itr;
    cin >> n;
    for (long long i = 0; i < n; i++) {
      cin >> b;
      mp[b]++;
    }
    int flag = 0;
    for (itr = mp.begin(); itr != mp.end(); itr++) {
      if (itr->second > 1) flag = 1;
    }
    if (flag == 1)
      cout << "YES" << endl;
    else if (flag == 0)
      cout << "NO" << endl;
  }
}
