#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int a;
    cin >> a;
    long double x[a];
    long double z = 0.0;
    for (int i = 0; i < a; i++) {
      cin >> x[i];
      z += x[i];
    }
    double k = z / a;
    cout << (int)ceil(k) << "\n";
  }
}
