#include <bits/stdc++.h>
using namespace std;
long long int m = 1000000000;
int fact(long long int n) {
  if (n == 1 || n == 0) return 1;
  return ((n % m) * fact((n - 1) % m));
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; i++) cin >> v[i];
    int sum = accumulate(v.begin(), v.end(), 0);
    cout << (sum + n - 1) / n << endl;
  }
}
