hdu6581
###name
Vacation
###descirption
Tom and Jerry are going on a vacation. They are now driving on a oneway road and several cars are in front of them. To be more specific, there are n cars in front of them. The ith car has a length of $l_i$, the head of it is $s_i$ from the stopline, and its maximum velocity is $v_i$. The car Tom and Jerry are driving is $l_0$ in length, and $s_0$ from the stopline, with a maximum velocity of $v_0$.
The traffic light has a very long cycle. You can assume that it is always green light. However, since the road is too narrow, no car can get ahead of other cars. Even if your speed can be greater than the car in front of you, you still can only drive at the same speed as the anterior car. But when not affected by the car ahead, the driver will drive at the maximum speed. You can assume that every driver here is very good at driving, so that the distance of adjacent cars can be kept to be 0.
Though Tom and Jerry know that they can pass the stopline during green light, they still want to know the minimum time they need to pass the stopline. We say a car passes the stopline once the head of the car passes it.
Please notice that even after a car passes the stopline, it still runs on the road, and cannot be overtaken.
###input
This problem contains multiple test cases.
For each test case, the first line contains an integer n $(1≤n≤10^5,∑n≤2×10^6)$, the number of cars.
The next three lines each contains n+1 integers, $l_i,s_i,v_i (1≤s_i,v_i,l_i≤10^9)$. It’s guaranteed that $s_i≥s_i+1+li+1,∀i∈[0,n−1]$
###output
For each test case, output one line containing the answer. Your answer will be accepted if its absolute or relative error does not exceed $10^{−6}$.
Formally, let your answer be a, and the jury’s answer is b. Your answer is considered correct if $a−bmax(1,b)≤10^{−6}$.
The answer is guaranteed to exist.
###sample input
1
2 2
7 1
2 1
2
1 2 2
10 7 1
6 2 1
###sample output
3.5000000000
5.0000000000
###toturial
我们尝试把位移时间图画出来，发现这是一个凸壳，我们直接暴力维护凸壳即可
###code
1 
