#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<long long int> h(n + 1);
    long long int sum = 0;
    for (int i = 1; i <= n; ++i) {
      cin >> h[i];
      sum += h[i];
    }
    long long int ans = sum / n;
    if ((ans * n) < sum) ans++;
    cout << ans << endl;
  }
  return 0;
}
