#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  while (q--) {
    int n;
    int sum = 0;
    cin >> n;
    for (int i = 0; i < n; i++) {
      int a;
      cin >> a;
      sum += a;
    }
    cout << (sum + n - 1) / n << endl;
  }
  return 0;
}
