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