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