#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, t, s, a[101], i;
  cin >> t;
  while (t--) {
    s = 0;
    cin >> n;
    for (i = 1; i <= n; i++) {
      cin >> a[i];
      s = s + a[i];
    }
    if (s % n != 0)
      cout << s / n + 1 << "\n";
    else
      cout << s / n << "\n";
  }
}
