#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  scanf("%d", &q);
  while (q--) {
    int n;
    scanf("%d", &n);
    int sum = 0, a;
    for (int i = 0; i < n; ++i) {
      scanf("%d", &a);
      sum += a;
    }
    printf("%d\n", (int)ceil(sum * 1.0 / n));
  }
  return 0;
}
