#include <bits/stdc++.h>
using namespace std;
int main() {
  int q, n;
  long long x;
  cin >> q;
  vector<long long> ans;
  for (int p = 0; p < q; ++p) {
    cin >> n;
    long long s = 0;
    for (int i = 0; i < n; ++i) {
      cin >> x;
      s += x;
    }
    ans.push_back((s + n - 1) / n);
  }
  for (int i = 0; i < q; ++i) cout << ans[i] << '\n';
  return 0;
}
