#include <bits/stdc++.h>
using namespace std;
const int N = 1000 * 1000 + 20;
int a[N];
int main() {
  int t;
  cin >> t;
  while (t--) {
    map<int, int> cnt;
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      cnt[a[i]]++;
    }
    string c = "NO";
    for (int i = 0; i < n; i++) {
      if (cnt[a[i]] > 1) {
        c = "YES";
      }
      cnt.erase(a[i]);
    }
    cout << c << "\n";
  }
}
