#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long t;
  cin >> t;
  while (t) {
    t--;
    long long n, m = 0;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
    }
    for (long long i = 0; i < n; i++) {
      for (long long j = i + 1; j < n; j++) {
        if (a[i] == a[j]) {
          cout << "YES" << endl;
          m = 1;
          break;
        }
      }
      if (m == 1) break;
    }
    if (m == 0) cout << "NO" << endl;
  }
}
