You are given $n$ sticks with lengths $a_1,a_2,\dots,a_n$ .
You must make exactly $k$ cuts to the sticks, so that
the number of sticks becomes $n + k$ .
After making the cuts, the difference between the length of the longest and shortest sticks should be as small as possible. Your task is to compute the smallest possible difference for all amounts $k=1,2,\dots,m$ .
The cuts must keep the lengths of the sticks positive integers. You may assume that the sticks can be cut $m$ times.
The first line contains two integers $n,m$ : the number of sticks and the maximum number of cuts.
The second line contains $n$ integers $a_1,a_2,\dots,a_n$ :
the lengths of the sticks.
Print one line with $m$ integers: the smallest possible difference if exactly $k=1,2,\dots,m$ cuts are made.
3 3 7 3 2
· \n · · \n
2 1 2
· · \n
When $k=1$ , you can cut the first stick into two sticks of lengths $3$ and $4$ . After this, the stick lengths are $[3,4,3,2]$ and the maximum difference is $2$ .