시간 제한메모리 제한제출정답맞힌 사람정답 비율
3 초 2048 MB111100.000%

문제

Consider $n$ coconuts and an array $d$ describing them. The value $d_i$ is the durability of the $i$-th coconut. It means that the $i$-th coconut will be cracked after $d_i$ hits.

Then the coconuts were shuffled, so it is now impossible to determine which coconut has which durability.

Your goal is to crack as many coconuts as possible using exactly $k$ hits. What is the expected number of cracked coconuts if you use the best possible strategy?

For each hit, you can arbitrarily select one coconut and hit it. After that, you see if the coconut has cracked or not.

입력

The first line contains two integers $n$ and $k$: the number of coconuts and the number of hits required, respectively.

The second line contains $n$ integers $d_1, d_2, \ldots, d_n$: durabilities of coconuts.

출력

Output one real number which denotes the expected number of cracked coconuts if you use the best possible strategy. The relative or absolute error of the result should not exceed $10^{-6}$.

제한

  • $1 \leq n \leq 10$;
  • $1 \leq d_i \leq 10$;
  • $1 \leq k \leq \sum\limits_{i=1}^n d_i$.

예제 입력 1

3 2
1 3 3

예제 출력 1

0.666666666667

예제 입력 2

4 5
2 2 3 3

예제 출력 2

1.833333333333

노트

Here are the best strategies for examples:

  1. Hit a random coconut, then hit another one.
  2. Choose a coconut, hit it until it cracks, then switch to another until it cracks, etc.