#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    long long int arr[n];
    long long int cnt = 0;
    map<long long int, long long int> mp;
    for (long long int i = 0; i < n; i++) {
      long long int a;
      cin >> a;
      mp[a]++;
      if (mp[a] >= 2) cnt = 1;
    }
    if (cnt)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
