#include <bits/stdc++.h>
using namespace std;
const int MAXN = 6e5 + 10;
const int MAXN1 = 105;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[n];
    int sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      sum += arr[i];
    }
    int ans = (sum / n);
    if (sum % n != 0) {
      ans++;
    }
    cout << ans << "\n";
  }
  return 0;
}
