#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  long long int sum = 0;
  for (long long int i = 0, x; i < n; i++) cin >> x, sum += x;
  cout << (sum + n - 1) / n << '\n';
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int T = 1;
  cin >> T;
  for (long long int TT = 1; TT <= T; TT++) {
    solve();
  }
}
