~/algor $ cat contests/round-7/AX
AX. Projectile at an angle
Problem AX
ICPC rules
1000 ms
64 MB
A body is thrown from the ground at m/s at an angle of degrees to the horizontal (air resistance is ignored). Find the flight time , the maximum height and the range :
Free-fall acceleration . Use .
Input
One line with two positive integers: and .
Output
One line with three numbers: , and , each with exactly 2 digits after the decimal point (for example, 1.44).
Note
Examples
Input #1
10 45
Output #1
1.44 2.55 10.20
Input #2
20 30
Output #2
2.04 5.10 35.35