#include <bits/stdc++.h>
using namespace std;
long long q, n, sum, x;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> q;
  while (q--) {
    cin >> n;
    sum = 0;
    for (int i = 0; i < n; ++i) {
      cin >> x;
      sum += x;
    }
    long long ans = (sum + n - 1) / n;
    cerr << "hello" << endl;
    cout << ans << '\n';
  }
  return 0;
}
