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