CF700A.As Fast As Possible

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

On vacations nn pupils decided to go on excursion and gather all together. They need to overcome the path with the length ll meters. Each of the pupils will go with the speed equal to v1v_{1} . To get to the excursion quickly, it was decided to rent a bus, which has seats for kk people (it means that it can't fit more than kk people at the same time) and the speed equal to v2v_{2} . In order to avoid seasick, each of the pupils want to get into the bus no more than once.

Determine the minimum time required for all nn pupils to reach the place of excursion. Consider that the embarkation and disembarkation of passengers, as well as the reversal of the bus, take place immediately and this time can be neglected.

输入格式

The first line of the input contains five positive integers nn , ll , v1v_{1} , v2v_{2} and kk ( 1<=n<=100001<=n<=10000 , 1<=l<=1091<=l<=10^{9} , 1<=v_{1}<v_{2}<=10^{9} , 1<=k<=n1<=k<=n ) — the number of pupils, the distance from meeting to the place of excursion, the speed of each pupil, the speed of bus and the number of seats in the bus.

输出格式

Print the real number — the minimum time in which all pupils can reach the place of excursion. Your answer will be considered correct if its absolute or relative error won't exceed 10610^{-6} .

输入输出样例

  • 输入#1

    5 10 1 2 5
    

    输出#1

    5.0000000000
    
  • 输入#2

    3 6 1 2 1
    

    输出#2

    4.7142857143
    

说明/提示

In the first sample we should immediately put all five pupils to the bus. The speed of the bus equals 22 and the distance is equal to 1010 , so the pupils will reach the place of excursion in time 10/2=510/2=5 .

首页