#include #define rep(i,a,b) for(int i=a;i> N; rep(i, 0, N) cin >> L[i]; priority_queue qu; rep(i, 0, N) rep(j, 0, 501010 / N + 1){ qu.push(1.0 * L[i] / (j + 1)); } rep(i, 1, 501010) { ans[i] = qu.top(); qu.pop(); } cin >> Q; rep(q, 0, Q) { int k; cin >> k; printf("%.12f\n", ans[k]); } }