#include <bits/stdc++.h>
using namespace std;
void Solve() {
  double n, sum = 0, temp;
  long long int ans;
  cin >> n;
  for (int i = 0; i < n; i += 1) {
    cin >> temp;
    sum += temp;
  }
  ans = ceil(sum / n);
  cout << ans << "\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int t;
  cin >> t;
  while (t) {
    t--;
    Solve();
  }
  return 0;
}
