#include <bits/stdc++.h>
using namespace std;
int main() {
  int Q;
  cin >> Q;
  while (Q--) {
    int N;
    cin >> N;
    int Arr[101];
    int avg = 0;
    for (int i = 0; i < N; i++) {
      cin >> Arr[i];
      avg += Arr[i];
    }
    avg /= N;
    while (1) {
      long long ret = 0;
      for (int i = 0; i < N; i++) {
        ret += avg - Arr[i];
      }
      if (ret >= 0) {
        break;
      }
      avg++;
    }
    cout << avg << '\n';
  }
}
