#include <bits/stdc++.h>
using namespace std;
int q;
int main() {
  cin >> q;
  for (int i = 1; i <= q; i++) {
    int n, ans, a[1010101], b[101010];
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      b[a[i]]++;
      ans += a[i];
    }
    cout << (ans + n - 1) / n << endl;
    ans = 0;
  }
  return 0;
}
