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