#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  int n;
  for (int x = 0; x < q; x++) {
    cin >> n;
    int a;
    int sum = 0;
    for (int y = 0; y < n; y++) {
      cin >> a;
      sum += a;
    }
    while (sum % n != 0) {
      sum += 1;
    }
    cout << sum / n << endl;
  }
}
