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