AF. [SCOI2010] 传送带

    Type: RemoteJudge 1000ms 125MiB

[SCOI2010] 传送带

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

在一个 22 维平面上有两条传送带,每一条传送带可以看成是一条线段。两条传送带分别为线段 AB\text{AB} 和线段 CD\text{CD}。lxhgww 在 AB\text{AB} 上的移动速度为 PP,在 CD\text{CD} 上的移动速度为 QQ,在平面上的移动速度 RR。现在 lxhgww 想从 A\text A 点走到 D\text D 点,他想知道最少需要走多长时间。

输入格式

第一行 44 个整数,表示 A\text AB\text B 的坐标,分别为 AxA_xAyA_yBxB_xByB_y

第二行 44 个整数,表示 C\text CD\text D 的坐标,分别为 CxC_xCyC_yDxD_xDyD_y

第三行 33 个整数,分别是 PPQQRR

输出格式

输出数据为一行,表示 lxhgww 从 A\text A 点走到 D\text D 点的最短时间,保留到小数点后 22 位。

0 0 0 100
100 0 100 100
2 2 1

136.60

提示

对于 100%100\% 的数据,1Ax,Ay,Bx,By,Cx,Cy,Dx,Dy1031\le A_x,A_y,B_x,B_y,C_x,C_y,D_x,D_y\le10^31P,Q,R101\le P,Q,R\le10

【蒙青创】A班CSP备战模板

Not Claimed
Status
Done
Problem
68
Open Since
2025-10-24 0:00
Deadline
2025-10-31 23:59
Extension
24 hour(s)