~/algor $ cat contests/round-7/AH
AH. Free fall
Problem AH
ICPC rules
1000 ms
64 MB
A body falls from a height of metres with no initial speed (air resistance is ignored). After how many seconds () does it hit the ground, and what is its speed (m/s) at impact?
Free-fall acceleration .
Input
One positive integer .
Output
One line with two numbers: and , each with exactly 2 digits after the decimal point (for example, 2.02).
Note
Examples
Input #1
20
Output #1
2.02 19.80
Input #2
490
Output #2
10.00 98.00