#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, temp, flag = 0;
    cin >> n;
    map<int, int> my_list;
    for (int i = 1; i <= n; i++) {
      cin >> temp;
      if (my_list.count(temp) == 0) {
        my_list[temp] = 1;
      } else {
        flag = 1;
      }
    }
    if (flag == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
