CSES - Aalto Competitive Programming 2024 - wk3 - Wed - Wario kart II
  • Time limit: 1.00 s
  • Memory limit: 512 MB

Uolevi is playing Wario kart again. The racing track contains nn boost pads numbered 0,1,,n10,1,\dots,n-1. The cars move normally at speed 100 m/s100\ m/s but the ii-th pad multiplies the car's speed by aia_i for one second if a player chooses to use it. The player can not pick up other boosts while one is in effect. After the boost ends, a player can also not use the next kk boost pads they pass. The ii-th pad lies at distance 100×i100 \times i meters from the starting line. The finishing line lies at distance 100×n100 \times n meters.

Last time Uolevi blue-shelled Maija so bad she isn't coming over to play any time soon. Uolevi is left to play alone and he is trying to finish the track as fast as possible. Help him find the theoretical fastest time achievable. Note that the track is not considered to be cyclic.

Input

The first line contains two integers nn and kk. The second line contains nn integers a0,a1,,an1a_0,\,a_1,\dots,\,a_{n-1}.

Output

Print the minimum time required to finish the track in seconds. The answer is considered correct if the error is less than 10310^{-3}.

Constraints

  • 1n1051 \leq n \leq 10^5
  • 0k1000 \leq k \leq 100
  • 2ai1052 \leq a_i \leq 10^5
  • All input values are integers

Example 1

Input:

5 1
3 2 2 2 2 

Output:

2.5

Explanation:

Uolevi picks boosts 0 and 4

Example 2

Input:

4 0
2 2 2 2 

Output:

2

Example 3

Input:

10 2
2 4 5 3 2 31 71 5 2 4

Output:

4.16129032258064516115