#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  for (int i = 0; i < q; i++) {
    int n;
    cin >> n;
    long long int a[n], sum = 0;
    for (int j = 0; j < n; j++) {
      cin >> a[j];
      sum += a[j];
    }
    int cost = ceil((float)sum / n);
    cout << cost << "\n";
  }
  return 0;
}
