P4986 Escape.

Background

$\ \rm Althen\ $ and $\ \rm hdxrie\ $ fell into a two-dimensional space.

Description

In fact, this space is not infinite, but a disk with a finite radius. At the beginning, both of them are at the center of the circle. To find the exit, they decide to act separately. As long as one of them finds the exit, they will leave. However, if one person finds the exit while the other is still in the two-dimensional space, the space will collapse due to imbalance. So they can only leave together. Specifically: - $\rm Althen\ $ can turn, and will keep turning, but can only move horizontally or vertically. - $\rm hdxrie\ $ can only walk along any straight line and cannot turn. For $\rm Althen\ $, the average speed in the horizontal right direction during the whole process is given by the function $A(x)$, and the average speed in the vertical upward direction is given by the function $B(x)$. For $\rm hdxrie\ $, the average speed of the whole movement is given by the function $C(x)$. The range of the parameter $x$ is $[L,R]$. Now they want to ask you: is it possible for them to leave this two-dimensional space together? If yes, what values of the parameter $x$ are possible?

Input Format

The input consists of four lines. The first line contains three integers: $La$, $Lb$, $Lc$, and two real numbers: $L$, $R$, representing the degrees of the three functions and the range of the parameter $x$. The second line contains $\ La+1\ $ integers, representing the coefficients of $A(x)$ in increasing order of power. The third line contains $\ Lb+1\ $ integers, representing the coefficients of $B(x)$ in increasing order of power. The fourth line contains $\ Lc+1\ $ integers, representing the coefficients of $C(x)$ in increasing order of power.

Output Format

If there is a solution, output one real number on a single line as the answer; otherwise output `Inconsistent!`.

Explanation/Hint

【Constraints】 For $10\%$ of the testdata, $L=R$. For another $20\%$ of the testdata, $La=Lb=Lc=1$. For another $30\%$ of the testdata, there is at most one valid parameter $x$ in $[L,R]$. For $100\%$ of the testdata, $0≤La,Lb,Lc≤10^5$, $0≤a_i,b_i,c_i≤9$, $L≤R$, $|L|,|R|≤3$. The answer precision must guarantee that, after substituting into the original three functions, the allowed error does not exceed $10^{-5}$. If the error is greater than $10^{-5}$, it will be judged as a wrong answer. It is recommended to output **at least eight digits after the decimal point**. ###### $\color{#EEE}{\tt {Notice\ that\ SPEED\ is\ VECTOR.(High\ school\ physics)}}$ Translated by ChatGPT 5