#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    map<int, int> hold;
    string str = "NO";
    while (n--) {
      int val;
      cin >> val;
      hold[val]++;
      if (hold[val] > 1) str = "YES";
    }
    cout << str << endl;
  }
}
