#include #include #include #include using ldouble = long double; using lint = long long; constexpr ldouble INF = 1e10; void solve() { int n; std::cin >> n; std::vector xs(n); for (auto& x : xs) std::cin >> x; lint k; std::cin >> k; ldouble ok = 0, ng = INF; for (int t = 0; t < 100; ++t) { ldouble mid = (ok + ng) / 2; lint cnt = 0; for (auto x : xs) { cnt += std::llround(std::floor(x / mid)); } if (cnt >= k) { ok = mid; } else { ng = mid; } } std::cout << ok << "\n"; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(10); solve(); return 0; }