#include <bits/stdc++.h>
using namespace std;
int main() {
  int s = 0;
  int n;
  cin >> n;
  while (n--) {
    int x;
    cin >> x;
    for (int i = 0; i < x; i++) {
      int z;
      cin >> z;
      s = s + z;
    }
    if (s % x == 0)
      cout << s / x << endl;
    else
      cout << s / x + 1 << endl;
    s = 0;
  }
}
