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