#include <bits/stdc++.h>
using namespace std;
int q, n, i, j;
int main() {
  cin >> q;
  for (i = 0; i < q; ++i) {
    cin >> n;
    int sum = 0;
    for (j = 0; j < n; ++j) {
      int x;
      cin >> x;
      sum += x;
    }
    cout << (sum + n - 1) / n << endl;
  }
  return 0;
}
