#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n, i, s = 0, x;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      s += a[i];
    }
    sort(a, a + n);
    x = s / n;
    if (s % n != 0) x++;
    cout << x;
    cout << "\n";
  }
  return 0;
}
