#include <bits/stdc++.h>
int q, n, a[105], avg;
int main() {
  scanf("%d", &q);
  for (int i = 0; i < q; i++) {
    scanf("%d", &n);
    int ans = 0;
    for (int j = 0; j < n; j++) {
      scanf("%d", &a[j]);
      ans += a[j];
    }
    if (ans % n == 0) {
      avg = ans / n;
    } else {
      avg = ans / n + 1;
    }
    printf("%d\n", avg);
  }
  return 0;
}
