#include <bits/stdc++.h>
int main() {
  int q, n, a;
  int i, j, sum, *ans;
  std::cin >> q;
  ans = new int[q];
  for (i = 0; i < q; i++) {
    sum = 0;
    std::cin >> n;
    for (j = 0; j < n; j++) {
      std::cin >> a;
      sum += a;
    }
    if (sum % n == 0)
      ans[i] = sum / n;
    else
      ans[i] = 1 + (sum / n);
  }
  for (i = 0; i < q; i++) {
    std::cout << ans[i] << std::endl;
  }
  delete[] ans;
  return 0;
}
