题目描述
Background
$\rm$ and $\rm$ have fallen into a two-dimensional space.
Problem Description
This space is not infinite but a disk with a finite radius.
Initially, both are at the center. To find an exit, they decide to split up. However, if one finds the exit while the other remains in the space, the space will collapse due to imbalance. Therefore, they must leave together.
Details:
- $\rm$ can turn and move horizontally or vertically.
- $\rm$ can only move in a straight line without turning.
$\rm$'s average speed to the right is represented by the function $A(x)$, and vertically up by $B(x)$. $\rm$'s average speed is represented by $C(x)$. The parameter $x$ ranges from $[L, R]$.
They want to know if they can leave together and, if so, what values $x$ can take.
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 lengths of the three functions and the range of $x$.
The second line contains $La+1$ integers, representing the coefficients of $A(x)$ in ascending order.
The third line contains $Lb+1$ integers, representing the coefficients of $B(x)$ in ascending order.
The fourth line contains $Lc+1$ integers, representing the coefficients of $C(x)$ in ascending order.
Output Format
If there is a solution, output one line with a real number as the answer; otherwise, output Inconsistent!.
Sample Input and Output
Input Sample #1
1 1 1 -2.00 0.50
1 2
1 3
4 1
Output Sample #1
-1.16666667
Input Sample #2
1 1 1 -1.00 0.50
1 2
1 3
4 1
Output Sample #2
Inconsistent!
Notes
[Data Range]
For 10% of the data, $L = R$;
For another 20% of the data, $La = Lb = Lc = 1$;
For another 30% of the data, there is at most one valid $x$ in $[L, R]$;
For 100% of the data, $0 \leq La, Lb, Lc \leq 10^5$, $0 \leq a_i, b_i, c_i \leq 9$, $L \leq R$, $|L|, |R| \leq 3$;
The accuracy of the answer needs to ensure that when substituted into the original three functions, the error does not exceed $10^{-5}$. An error greater than $10^{-5}$ will be considered incorrect. It is recommended to output with at least eight decimal places.
$\color{#EEE}{\tt {Notice\ that\ SPEED\ is\ VECTOR.(High\ school\ physics)}}$
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分