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