Teardrops on my Guitar
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Background
Drew: Hey, are you gonna go to the tour on Sunday?
Taylor: Oh, I was thinking about it. Why?
Drew: Oh, I don't know. Just asking.
Drew: Oh, I met this girl. I gonna tell you about it later.
(Taylor exhales deeply) (gentle wistful music)
Description
Drew and Taylor was visiting Anhui's Celebrities Museum(安徽省名人馆)on 16th, April, 2023. As the standard-bearer of the class, Taylor was stopped by the gatekeeper because her flag was too long to carry into the museum. It takes her some time to put flagstaff away. When she finally came in, It was sad for her to miss the trace of Drew.
Fortunately, Yang, a friend of Taylor, was visiting the museum side by side with Drew. He had told the coordinate, direction vector and the speed of them. Taylor wanted to know how long it will take to catch up with Drew if she run to the optimum direction as far as she can.
- Assuming the museum has only one floor, we can consider it as a two-dimensional surface and represent the coordinates with a two-dimensional point and the direction of movement with a two-dimensional vector. So we define Taylor started at with a speed of . Drew and Yang started at , and had a traveling speed of with a direction vector of .
- Assuming Drew and Yang's original positions are , after seconds, their positions will be $(x + t \times m \times v_d, y + t \times n \times v_d)$.
- Assuming the museum is infinitely large, without considering the boundaries of the museum.
- Assuming we can freely move within the library, without considering the walls or exhibits inside the museum.
Format
Input
6 decimal numbers , represent Taylor's speed, Drew and Yang's starting point, Direction vector of their movement and their speed.
It is guaranteed that .
All the decimal numbers are rounded to no greater than 3 decimal places.
Output
- If Taylor can't catch up with Drew within seconds, Please output a single line
Drew, Please wait for me!
- If Taylor can catch up with Drew within seconds, output a decimal number , represent the minimum time required for Taylor to catch up with Drew. Please rounded your output to 5 decimal places, because only when your output is exactly same to the standard answer will it be accepted.
Sample
4 5 0 -0.6 0.8 3
1.00000
3.464 1 0 0.5 0.866 2
0.50002
Limitation
1s, 128MB
Drew walks by me Can he tell that I can't breathe? And there he goes, so perfectly The kind of flawless I wish I could be.
2023安徽大学ICPC集训队排位选拔赛 - Round1
- 状态
- 已结束
- 规则
- ACM/ICPC
- 题目
- 6
- 开始于
- 2023-6-3 8:00
- 结束于
- 2023-6-3 12:00
- 持续时间
- 4 小时
- 主持人
- 参赛人数
- 29