#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long tc = 1;
  cin >> tc;
  while (tc--) {
    long long n;
    cin >> n;
    long long arr[n];
    map<long long, long long> mp;
    string ans = "NO";
    for (long long i = 0; i < n; i++) {
      cin >> arr[i];
      mp[arr[i]]++;
      if (mp[arr[i]] > 1) ans = "YES";
    }
    cout << ans << "\n";
  }
}
