#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int i, q, n, s, a;
  cin >> q;
  while (q--) {
    cin >> n;
    for (i = 0, s = 0; i < n; i++) {
      cin >> a;
      s += a;
    }
    cout << (s + n - 1) / n << endl;
  }
  return 0;
}
