303620: CF700A. As Fast As Possible
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
As Fast As Possible
题意翻译
有 $n$ 个人想要到 $l$ 米远的地方,他们的走路速度为 $v1$,现在有一辆车,最多坐 $k$ 人,速度为 $v2$,每个人最多上一次车,问这些人都到达的最早时间。题目描述
On vacations $ n $ pupils decided to go on excursion and gather all together. They need to overcome the path with the length $ l $ meters. Each of the pupils will go with the speed equal to $ v_{1} $ . To get to the excursion quickly, it was decided to rent a bus, which has seats for $ k $ people (it means that it can't fit more than $ k $ people at the same time) and the speed equal to $ v_{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 $ n $ 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 $ n $ , $ l $ , $ v_{1} $ , $ v_{2} $ and $ k $ ( $ 1<=n<=10000 $ , $ 1<=l<=10^{9} $ , $ 1<=v_{1}<v_{2}<=10^{9} $ , $ 1<=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 $ 10^{-6} $ .
输入输出样例
输入样例 #1
5 10 1 2 5
输出样例 #1
5.0000000000
输入样例 #2
3 6 1 2 1
输出样例 #2
4.7142857143