#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  int n;
  double sum = 0;
  for (int i = 0; i < q; i++) {
    cin >> n;
    long long int a;
    for (int j = 0; j < n; j++) {
      cin >> a;
      sum += a;
    }
    cout << fixed << setprecision(0) << ceill((sum / n)) << endl;
    sum = 0;
  }
}
