#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int i, a[n];
    double sum = 0;
    for (i = 0; i < n; i++) {
      cin >> a[i];
      sum = sum + a[i];
    }
    double avg = sum / n;
    if ((int)avg < avg) {
      cout << (int)avg + 1 << endl;
    } else
      cout << (int)avg << endl;
  }
  return 0;
}
