#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int q;
  cin >> q;
  while (q--) {
    int n;
    cin >> n;
    int a[n], s = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      s += a[i];
    }
    if (s % n == 0) {
      cout << s / n << "\n";
    } else {
      int x = ceil(1.0 * s / n);
      cout << x << "\n";
    }
  }
}
