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