In middle school, Hawk often needs to solve quadratic equation problems.
A quadratic equation, is an equation such as aX2
Given the values of a
, and c
, would you please help Hawk determine the value of X
The first line of the input contains an integer n
< 1000). The next n
lines contain n
equations, each equation is denoted by three double valued numbers, a
, and c
. The value of a
won't be zero.
For each equation, output a line contains the solution. For quadratic equation, there may be two different values for
, please output the smaller one firstly. Answers must be rounded to three digits after the decimal point. If the
equation has no solution, output "No solution!".
1.0 10.0 5.0
1.0 2.0 1.0
2.5 5.8 5.4
12.0 4.0 -56.0
-2.333 2.000Problem Setter: