#include <bits/stdc++.h>
const long long mod = 1000000007;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int test;
  cin >> test;
  while (test--) {
    long long n, sum = 0;
    cin >> n;
    vector<long long> arr(n);
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      sum += arr[i];
    }
    cout << sum / n + (sum % n != 0) << endl;
  }
}
