CF198C.Delivering Carcinogen

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

The first line contains space-separated integers xpx_{p} , ypy_{p} and vpv_{p} ( 104<=xp,yp<=104-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 xx , yy , vv and rr ( 104<=x,y<=104-10^{4}<=x,y<=10^{4} , 1<v<=10^{4} , 1<=r<=1041<=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 10610^{-6} .

输出格式

输入输出样例

  • 输入#1

    10 0 1
    -10 0 2 8
    

    输出#1

    9.584544103
  • 输入#2

    50 60 10
    50 60 20 40
    

    输出#2

    0.000000000
首页