URI Online Judge | 1595
# Humm.. Run or Walk.. That's the Question

**Timelimit: 1**

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

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

*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 |

3 2 0 20 10 5 2 1 20 10 10 4 3 1 100 100 100 50 |
0.30 0.13 0.05 |