Quadratic equations
Quadratic equations are interesting in that the function can cross the
OX
axis twice, once, or even never.You are asked to find the points where the quadratic function crosses the
OX
axis. To recap, that calculation can be done through the following procedure:Given
a
, b
, and c
integers, print the points of the solutions on separate lines (the points at which the graph crosses OX
axis), and in case there are no such points, the program should print No solutions
.Input | Output |
1
0
1 | No solutions |
48
58
5 | -0.09343122199453073
-1.1149021113388027 |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB