407074: GYM102697 045 Planet Omicron Persei VIII

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

045. Planet Omicron Persei VIIItime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

You are on planet Omicron Persei VIII and you find that the force due to gravity on you is Fg newtons, you also know that you have a mass of M. Using this information you want to know how long it will take for an object to fall (time T in seconds) a distance D starting from rest (Vi speed when the object is initially released). Using the following equations Fg = MG and D = ViT+½GT^2.

Input

The first line will be the force due to gravity of you (Fg), the second line is your mass (M) and the third is the distance the object is going to fall (D).

Output

Print the time that it will take for the object to fall d meters in the following format: "It will take the object T seconds to fall D meters". Your answer should also be rounded to the nearest tenth.

ExampleInput
500
70
10
Output
It will take the object 1.7 seconds to fall 10.0 meters
Note

If you are getting confused by the Vi part here is a hint. When an object is at rest, meaning not moving, what is its speed.

加入题单

算法标签: