#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[111];
    for (int i = 0; i < n; ++i) cin >> arr[i];
    int lo = 1, hi = 20000000, ans;
    while (lo <= hi) {
      int mid = (lo + hi) >> 1;
      int pro = 0;
      for (int i = 0; i < n; ++i) pro += (mid - arr[i]);
      if (pro >= 0) {
        ans = mid;
        hi = mid - 1;
      } else
        lo = mid + 1;
    }
    cout << ans << '\n';
  }
}
