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