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