#P1577. 切绳子

切绳子

Description

There are NN ropes with lengths LiL_i. If we cut from them KK ropes of equal length, determine the maximum possible length of each of these KK ropes. Keep the answer to two decimal places (truncate after the second decimal digit).

Input Format

The first line contains two integers NN and KK.
Each of the next NN lines describes the length LiL_i of a rope.

Output Format

Output the maximum length of each rope after cutting. The answer will be accepted if the absolute error does not exceed 0.010.01 or the relative error does not exceed 1%1\%.

4 11
8.02
7.43
4.57
5.39
2.00

Hint

Constraints: For 100%100\% of the testdata, 0<Li100000.000 < L_i \leq 100000.00, 0<N100000 < N \leq 10000, 0<K100000 < K \leq 10000.

Translated by ChatGPT 5