#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
using vii = vector<pii>;
using vi = vector<ll>;
const int INF = 1e9 + 7;
const double EPS = 1e-9;
const double PI = acos(-1.0);
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, q, aux, i, num;
  cin >> n;
  while (n--) {
    cin >> q;
    num = 0;
    for (i = 0; i < q; i++) {
      cin >> aux;
      num += aux;
    }
    cout << (num + q - 1) / q << endl;
  }
  return 0;
}
