#include <bits/stdc++.h>
int main() {
  int q;
  std::cin >> q;
  int* res = new int[q];
  for (int i = 0; i < q; i++) {
    int n;
    std::cin >> n;
    int s = 0;
    int tmp;
    for (int j = 0; j < n; j++) {
      std::cin >> tmp;
      s += tmp;
    }
    res[i] = ceil((float)s / n);
  }
  for (int i = 0; i < q; i++) {
    std::cout << res[i] << std::endl;
  }
  return 0;
}
