#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  while (q--) {
    int n;
    cin >> n;
    int64_t sum = 0;
    for (int i = 0; i < n; ++i) {
      int x;
      cin >> x;
      sum += 1LL * x;
    }
    cout << (sum / n) + (sum % n != 0) << '\n';
  }
  return 0;
}
