Description: Xiao Ming aircraft about to catch up !
Fortunately, there are some belt hall way . Each conveyor has a constant speed , there is no overlap between the conveyor .
Bob his walking speed of w, if the belt speed is v, the walking speed of the belt is w+ v.
But Xiao Ming is still very anxious, so he decided to run for some time t. His running speed is r, then if the belt speed of v, the speed of the conveyor belt is running on r+ v.
For the time t, he does not have to run continuously , you can walk rerun . Does not necessarily have to run enough t.
Q. Xiaoming at least the time required to reach the end.
Enter the first act with a number of cases T, 1 <= T <= 40.
Each set of use cases first line contains five integers:
X: is the length of the hall , Xiao Ming starting at 0 , the end is X, 1 <= X <= 1000000
W: the walking speed
R: the running speed , 1 <= W <R <= 100
t: maximum run t seconds , 1 <= t <= 1000000
n: number of conveyor belts
The next
To Search:
File list (Check if you may need any files):
5. 传送带\5. 传送带\5. 传送带.cpp
.........\.........\5. 传送带.vcxproj
.........\.........\5. 传送带.vcxproj.filters
.........\.........\Debug\5. 传送带.obj
.........\.........\.....\..........tlog\5. 传送带.lastbuildstate
.........\.........\.....\..............\CL.read.1.tlog
.........\.........\.....\..............\CL.write.1.tlog
.........\.........\.....\..............\link.read.1.tlog
.........\.........\.....\..............\link.write.1.tlog
.........\.........\.....\vc120.idb
.........\.........\.....\vc120.pdb
.........\5. 传送带.sdf
.........\5. 传送带.sln
.........\5. 传送带.v12.suo
.........\Debug\5. 传送带.exe
.........\.....\5. 传送带.ilk
.........\.....\5. 传送带.pdb
.........\5. 传送带\Debug\5. 传送带.tlog
.........\.........\Debug
.........\5. 传送带
.........\Debug
5. 传送带