#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  long long q;
  cin >> q;
  for (long long z = 0; z < q; z++) {
    long long n;
    cin >> n;
    vector<long long> a((size_t)n);
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
    }
    cout << (accumulate(a.begin(), a.end(), (long long)0) + n - 1) / n << endl;
  }
  return 0;
}
