传送带-ybt
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.
Description
在一个2维平面上有两条传送带,每一条传送带可以看成是一条线段。两条传送带分别为线段AB和线段CD。lxhgww在AB上的移动速度为P,在CD上的移动速度为Q,在平面上的移动速度R。现在lxhgww想从A点走到D点,他想知道最少需要走多长时间。
Input Format
输入数据第一行是4个整数,表示A和B的坐标,分别为Ax,Ay,Bx,By
第二行是4个整数,表示C和D的坐标,分别为Cx,Cy,Dx,Dy
第三行是3个整数,分别是P,Q,R
Output Format
输出数据为一行,表示lxhgww从A点走到D点的最短时间,保留到小数点后2位
0 0 0 100
100 0 100 100
2 2 1
136.60
Hint
【数据范围】
对于100%的数据,1≤ Ax,Ay,Bx,By,Cx,Cy,Dx,Dy≤1000
1≤P,Q,R≤10
12月8日ACM周末训练
- Status
- Done
- Rule
- XCPC
- Problem
- 10
- Start at
- 2024-12-8 11:00
- End at
- 2024-12-8 16:00
- Duration
- 5 hour(s)
- Host
- Partic.
- 11