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