#include #include #include #include #include #include #include #include #include using namespace std; long long cut(vector &l, double L){ long long ret = 0; L = 1.0/L; for(int i=0; i &l, long long K){ double lb = 0; double ub = *max_element(l.begin(), l.end()); const double EPS = 1e-10; int count = 0; while( fabs(ub - lb) > EPS){ count++; if(count > 1100){ break; } double med = (lb+ub)*0.5; long long tmp = cut(l, med); if( tmp < K ){ ub = med; }else{ lb = med; } } return ub; } int main(){ int n; cin >> n; vector l(n); for(int i=0; i> l[i]; long long k; cin >> k; printf("%.10f\n", bs(l,k)); return 0; }