#include <bits/stdc++.h>
using namespace std;
int ceiling(int total, int n) {
  if (total % n == 0) {
    return total / n;
  }
  return total / n + 1;
}
int main() {
  int q, n, total = 0, new_price;
  vector<int> cost;
  cin >> q;
  while (q--) {
    cin >> n;
    cost.resize(n);
    for (int i = 0; i < n; i++) {
      cin >> cost[i];
      total += cost[i];
    }
    new_price = ceiling(total, n);
    cout << new_price << endl;
    total = 0;
  }
  return 0;
}
