Every giantarum has its garden. So welcome to AekdyCoin’s garden! Here is the spray pond!
The small blue point in the figure above is the headwater. The stream path is red. And there are some kind of dam-board, any of them has magic power! When the water meets with the dam-board, something will happen!
Consider the headwater as one point in three-dimensional space and its coordinate is (0, 0, H). Then a velocity is given as the water’s horizontal velocity. You could see in the figure following:
So if there is no dam-board cut off the stream path, the stream path will just as the yellow path in the figure above!( Air drag, friction will be ignore!)
But if there exist some dam-board cut off the stream path
So, if the dam-board cut off the stream, the Vertical velocity of the stream will become 0! And then depend on the magic power of the dam-board, the New_Vx ,New_Vy of New_V will change!
There are three kind of dam-board in AekdyCoin’s Garden.
(1) Type 0: the horizontal velocity vector rotate anticlockwise for some radian:
(2) Type 1: The Vx will be modified!
If the Vx is modified, we could know the horizontal velocity will be modified too!
(3) Type 2: The Vy will be modified!
If the Vy is modified, we could know the horizontal velocity will be modified too!
Note: The modification happened at the moment when the stream touches the dam-board
Now AekdyCoin focus on a water-drop at the headwater and its mass is exactly M (kg).
Now Stupid AekdyCoin want you to write a program to tell him the time this water-drop need to drop onto the plane (z = 0). (In this problem, the acceleration due to gravity G is 9.18)