#include <bits/stdc++.h>
using namespace std;
int t, n;
int a[1000005];
vector<int> x;
void solve() {
  int sum = 0, ans;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  int l = 1, r = 1e7;
  while (l <= r) {
    int mid = (l + r) >> 1;
    if (mid * n >= sum) {
      r = mid - 1;
      ans = mid;
    } else {
      l = mid + 1;
    }
  }
  x.push_back(ans);
}
int main() {
  cin >> t;
  while (t--) solve();
  for (int i = 0; i < x.size(); i++) {
    cout << x[i] << '\n';
  }
}
