Problem C
Return of the Jedi
Luke Skywalker races through the forest on a speeder bike,
trying to outrun a patrol of Imperial scouts on Endor. A small
moon near a new Death Star, Endor is covered by dense foliage
and a thick forest of ancient towering trees. The speeder bike,
which Luke stole from an Imperial scout, is an antigravity
vehicle capable of speeds of
The forest is a plane with
Input
The first line of input contains five numbers
Trees do not intersect or touch one another. Luke’s position and the position of the Ewok village do not touch or lie inside any tree.
Output
Output is a single real number, giving the minimum travel
time in seconds. The output should be accurate to within an
absolute or relative error of at most
Sample Input 1 | Sample Output 1 |
---|---|
2 0.0 0.0 10.0 0.0 4.0 0.0 1.0 6.0 0.0 1.0 |
181.126471759 |