#include <bits/stdc++.h>
using namespace std;
int main() {
  int q, n, x;
  cin >> q;
  while (q--) {
    int s = 0;
    cin >> n;
    for (int i = 0; i < n; ++i) {
      cin >> x;
      s += x;
    }
    if (s % n == 0)
      cout << (s) / n << "\n";
    else
      cout << (s + n) / n << "\n";
  }
  return 0;
}
