#include #include #include using namespace std; long long int N, K; int L[200010]; bool check(double x) { long long tmp = 0; for (int i = 0; i < N; i++) { tmp += L[i] / x; } return K <= tmp; } int main() { cin >> N; for (int i = 0; i < N; i++) cin >> L[i]; cin >> K; double lb = 0; double ub = 1e10; double mid = 0; for (int i = 0; i < 100; i++) { mid = (lb + ub) / 2; if (check(mid)) lb = mid; else ub = mid; } printf("%.14lf", lb); return 0; }