#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  while (q--) {
    int n;
    long long int value;
    cin >> n;
    vector<long long int> v;
    for (int i = 0; i < n; i++) {
      cin >> value;
      v.push_back(value);
    }
    long long int k = accumulate(v.begin(), v.end(), 0);
    long long int m = (ceil(double(k) / n));
    cout << fixed;
    cout << m << '\n';
  }
}
