Completed Start: 10 Nov 2024, 09:00 End: 10 Nov 2024, 13:00 Timezone: Asia/Almaty

Flight speed

10s
1GiB

Arman and his assistants are flying from Earth to the space station to repair the gravitational matrix. On a graph of time (hours since launch) against distance (kilometers from Earth), the path of their rocket is a branch of the parabola y = ax^2 + bx + c. They want to know the exact speed of their rocket d hours after launch.

The real numbers a, b, c and d are given on separate lines. 0 < a, b, c, d < 1000.

Output the answer to the problem.

Input

10
4.65116
7.178
12

Output

244.65116

Login to submit

You need to be signed in to submit solutions and track your submissions.

Log In