#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int q;
  cin >> q;
  while (q--) {
    int n;
    cin >> n;
    int temp;
    int sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> temp;
      sum += temp;
    }
    cout << (int)ceil((double)sum / n) << "\n";
  }
  return 0;
}
