#include <bits/stdc++.h>
const int MAXN = 105;
int n, A[MAXN];
int main() {
  int T;
  scanf("%d", &T);
  while (T--) {
    int sum = 0;
    scanf("%d", &n);
    for (int i = 1; i <= n; ++i) scanf("%d", A + i), sum += A[i];
    if (sum % n)
      printf("%d\n", sum / n + 1);
    else
      printf("%d\n", sum / n);
  }
  return 0;
}
