#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, sum = 0, k;
  cin >> t;
  while (t--) {
    sum = 0;
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> k;
      sum += k;
    }
    cout << (int)ceil((double)sum / n) << endl;
  }
}
