测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A8637. Delivering Carcinogen

编程题 普及/提高-

题目描述

The first line contains space-separated integers $x_{p}$ , $y_{p}$ and $v_{p}$ ( $-10^{4}<=x_{p},y_{p}<=10^{4}$ , $1<=v_{p}<10^{4}$ ) — Persephone's initial position and the speed at which it goes round Diatar.

The second line contains space-separated integers $x$ , $y$ , $v$ and $r$ ( $-10^{4}<=x,y<=10^{4}$ , $1<v<=10^{4}$ , $1<=r<=10^{4}$ ) — The intial position of Qwerty's ship, its maximum speed and the minimum safe distance to star Diatar.

It is guaranteed that $r^{2}<x^{2}+y^{2}$ , $r^{2}<x_{p}^{2}+y_{p}^{2}$ and $v_{p}<v$ .

输入格式

Print a single real number — the minimum possible delivery time. The answer will be considered valid if its absolute or relative error does not exceed $10^{-6}$ .

输出格式

无

输入输出样例

输入 #1
10 0 1
-10 0 2 8
输出 #1
9.584544103
输入 #2
50 60 10
50 60 20 40
输出 #2
0.000000000
上一题 去做题 下一题