Ropes (Contest)
Ropes (Contest) easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Ropes (Contest) easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Problem Statement :
There are n ropes, you need to cut k pieces of the same length from them. Find the maximum length of the piece you can get. Input The first line of the input contains two integers n and k. Next n lines contain one number each, the length of the rope ai.
Constraints 1 ≤ n, k ≤ 10000 1 ≤ ai ≤ 107 Output Print one real number maximum length of the piece you can get. Print the result up to 6 decimal places. Example Sample Input 4 11 802 743 457 539
Sample Output 200.500000
link: