#P1577. 切绳子
切绳子
Description
There are ropes with lengths . If we cut from them ropes of equal length, determine the maximum possible length of each of these ropes. Keep the answer to two decimal places (truncate after the second decimal digit).
Input Format
The first line contains two integers and .
Each of the next lines describes the length 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 or the relative error does not exceed .
4 11
8.02
7.43
4.57
5.39
2.00
Hint
Constraints: For of the testdata, , , .
Translated by ChatGPT 5
京公网安备 11011102002149号