#include <bits/stdc++.h>
using namespace std;
long long q, n, a[110];
int main() {
  cin >> q;
  for (int s = 0; s < q; s++) {
    cin >> n;
    long long sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum = sum + a[i];
    }
    if (sum % n == 0)
      cout << (sum / n) << endl;
    else
      cout << (sum / n) + 1 << endl;
  }
}
