#Q14. 「一本通 1.2 例 3」曲线
「一本通 1.2 例 3」曲线
Description
Ming Ming encountered quadratic functions while doing homework. He whimsically designed a new function .

Ming Ming now wants to find the minimum value of this function over the interval , accurate to four decimal places, rounded.
Input Format
The input contains test cases. The first line of each test case is an integer ;
The next lines each contain integers , , , representing the coefficients of each quadratic function. Note: The quadratic function may degenerate into a linear one.
Output Format
For each test case, output one line representing the minimum value of the new function over the interval . The result should be accurate to four decimal places, rounded.
Sample 1
2
1
2 0 0
2
2 0 0
2 -4 2
0.0000
0.5000
Data Range and Hints
For of the data, ;
For of the data, , , , , .