#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t > 0) {
    int n, k = 0, x;
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> x;
      k = k + x;
    }
    if (k % n == 0) {
      cout << k / n << "\n";
    } else {
      k = k / n;
      cout << k + 1 << "\n";
    }
    t--;
  }
  return 0;
}
