#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int a[n];
  for (long i = 0; i < n; i++) cin >> a[i];
  long sum = 0;
  for (long i = 0; i < n; i++) {
    sum += a[i];
  }
  if (sum % n == 0)
    cout << sum / n << '\n';
  else
    cout << (sum / n) + 1 << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
