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