#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long arr[n];
    long long s = 0;
    for (long long i = 0; i < n; i++) {
      cin >> arr[i];
      s = s + arr[i];
    }
    long long vl = ceil((long double)s / n);
    cout << vl << '\n';
  }
  return 0;
}
