#include <bits/stdc++.h>
using namespace std;
const long long MOD = (1 << 30);
const double Exp = 1e-8;
const int maxm = 1e5 + 7;
const int maxn = 1e5 + 7;
const int inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3f;
const double pi = 3.1415926535898;
long long t, n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  cin >> t;
  while (t--) {
    cin >> n;
    long long sum = 0;
    for (int i = 1; i <= n; ++i) {
      long long x;
      cin >> x;
      sum += x;
    }
    cout << (int)ceil(1.0 * sum / n) << endl;
  }
  return 0;
}
