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