#Lutece0307. I Hate Noise!
I Hate Noise!
Migrated from Lutece 307 I Hate Noise!
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
As we all know, Fish hates noise so much. He feels very uncomfortable when he stays in a noisy place. But unfortunately,there is an airport near the campus.The aircrafts' noise always comes out when Fish is coding,which drives him crazy! Fish is so helpless, he can do nothing but to bear.
Now Fish is in his dormitory, the cartesian coordinate of his dormitory is . Now an aircraft is going to take off, and Fish knows the range of the aircraft's noise influence is a circle and its radius is , and the speed of the aircraft is , the start point and the end point of the route (The route is a straight line). He wants to know how much time he must cost to bear that noise, can you tell him?
Input
The first line of the input contains one integer (), which indicates the number of test cases.
Following each test, there is two lines. In the first line of each case, there are four real numbers ,, and (, ), in the next line, there are four real numbers ,, and ().
Output
For each test case, output one line. First ,output Case #C:
, where is the number of test case, from to . Then,output the time Fish must bear that noise, rounded two digits.
Samples
1
2.0 1.0 0.0 0.0
-3.0 0.0 3.0 0.0
Case #1: 4.00
Note
This picture shows the details of the description
Resources
Fish