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