#include <bits/stdc++.h>
using namespace std;
const int N = 120;
int n, q;
int a[N];
int main() {
  scanf("%d", &q);
  while (q--) {
    scanf("%d", &n);
    for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
    int sum = 0;
    for (int i = 1; i <= n; i++) sum += a[i];
    cout << (sum + n - 1) / n << endl;
  }
  return 0;
}
