Given the missile parabola and the anti-missile launch point and speed, decide the firing time and angle that intercepts at time tK, or report failure.
Medium4GeometryMathImplementationNo attempts yetTime limit2sMemory limit512 MBYou have to write software that shoots down a missile fired by the enemy. The situation is modeled as a simple two dimensional plane. The enemy launches its missile from (xm,0) on the x axis, and you launch your anti-missile from (xa,0). All lengths are in feet.
At the moment of launch the enemy missile has velocity vx in the x direction and vy in the y direction, in feet per second. The missile is launched at time 0, so at any later time t it is at
(xm+vxt,vyt−16t2)
The image below draws one possible pair of trajectories. The missile follows a parabola and the anti-missile follows a straight line. In this picture vx is negative. vy is always positive.

Your commanders want the missile destroyed at a specific time tK. Work out when to fire your anti-missile and what launch angle α to use, so that it meets the missile at exactly that time. You are also given va, the speed of your anti-missile along its straight trajectory.
Sometimes the missile cannot be destroyed at time tK. It cannot be destroyed if either of the following holds.
In that case the software sounds an alarm so that everyone can start running.
One line holds six integers xm, vx, vy, xa, va, tK, separated by spaces, where 0<vy,va,tK≤10000, −10000≤xm,vx,xa≤10000, and xm=xa.
If the missile cannot be destroyed at time tK, print start running.
Otherwise print the launch time tL and the launch angle α on one line, separated by a single space. Round both values to exactly eight digits after the decimal point and print all eight digits.
α is in degrees, measured counterclockwise from the positive x direction, and always satisfies 0<α<180.