#P2571. [SCOI2010] 传送带
[SCOI2010] 传送带
Description
In a -dimensional plane, there are two conveyor belts, each of which can be regarded as a line segment. The two conveyor belts are line segment and line segment . lxhgww moves at speed on , at speed on , and at speed on the plane. Now lxhgww wants to go from point to point , and he wants to know the minimum time required.
Input Format
The first line contains integers, giving the coordinates of and , namely , , , .
The second line contains integers, giving the coordinates of and , namely , , , .
The third line contains integers, which are , , and .
Output Format
Output one line, the minimum time for lxhgww to go from point to point , rounded to decimal places.
0 0 0 100
100 0 100 100
2 2 1
136.60
Hint
For of the testdata, $1 \le A_x, A_y, B_x, B_y, C_x, C_y, D_x, D_y \le 10^3$, .
Translated by ChatGPT 5
京公网安备 11011102002149号