URI Online Judge | 1595

Humm.. Run or Walk.. That's the Question

By Bruno Adami, Universidade de São Paulo - São Carlos BR Brazil

Timelimit: 1

You are walking in your city and you noticed that there are moments that you walk faster or slower, it depends on the inclination of the street.

The course made by you has S meters. We can divide the course in parts of 1 meter, and in the i-th part you walk with velocity Vi meters/second. With that information and some basic Physics you can calculate the time you need to reach the end.

Now you want to run! But you don't want to get tired, that is why you will run in at most C of the S parts of the course. When you run, your speed has an addition of R meters/second! Assume that your acceleration is instantaneous. Chossing the best running strategy, compute the minimum amount of time you need to reach at the end of the course.


On the first line you have an integer T (T = 100) indicating the number of test cases.

On the first line of each case we have the integers S (1 ≤ S ≤ 100* or 1 ≤ S ≤ 105**), C (0 ≤ CN​) and R (0 ≤ R≤ 100). On the following line, S integers will follow separated by spaces indicating the speed in each part of the course. In all test cases, 1 ≤ Vi ≤ 100. We know that this speed is huge, but imagine you are a cousin of The Flash.

*for around 90% of the cases;
**for the other test cases.


Print, for each test case, the minimum amount of time necessary to reach the end, in seconds, rounded to two decimal places.

Sample Input Sample Output


2 0 20

10 5

2 1 20

10 10

4 3 1

100 100 100 50