#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, ar[100000], i, j, k, t, l, p, maxi, mini;
  cin >> t;
  while (t--) {
    cin >> n;
    l = 0;
    for (i = 0; i < n; i++) {
      cin >> ar[i];
      l = l + ar[i];
    }
    if (l % n == 0)
      cout << l / n << endl;
    else
      cout << (l / n) + 1 << endl;
  }
  return 0;
}
