#include <bits/stdc++.h>
using namespace std;
long long arr[100005];
void solve() {
  long long n;
  cin >> n;
  long long sum = 0;
  for (long long i = 0; i < n; i++) {
    long long t;
    cin >> t;
    sum += t;
  }
  sum += n - 1;
  sum /= n;
  cout << sum << "\n";
}
signed main() {
  ios_base::sync_with_stdio(false);
  long long t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
