#include <bits/stdc++.h>
using namespace std;
void cold_coded() {
  int n;
  cin >> n;
  int sum = 0;
  vector<int> prices(n);
  for (int i = 0; i < n; i++) {
    cin >> prices[i];
    sum += prices[i];
  }
  cout << (sum + n - 1) / n << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    cold_coded();
  }
  return 0;
}
