#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;
    long long cnt = 0;
    cin >> n;
    for (int i = 0; i < n; i++) {
      int num;
      cin >> num;
      cnt += num;
    }
    if (cnt % n == 0) {
      cout << (cnt / n) << "\n";
    } else {
      cout << (cnt / n) + 1 << "\n";
    }
  }
  return 0;
}
