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