#include <bits/stdc++.h>
using namespace std;
int main() {
  int q, n, sum;
  cin >> q;
  while (q--) {
    cin >> n;
    int m = n;
    sum = 0;
    while (n--) {
      int x;
      cin >> x;
      sum += x;
    }
    double y = (double)sum / m;
    int rs = y;
    if (y == rs) {
      cout << rs << endl;
    } else {
      cout << rs + 1 << endl;
    }
  }
  return 0;
}
