#C10890. Roots of a Quadratic Equation

    ID: 40145 Type: Default 1000ms 256MiB

Roots of a Quadratic Equation

Roots of a Quadratic Equation

You are given three integers representing the coefficients (a), (b), and (c) of a quadratic equation in the form (ax^2 + bx + c = 0). Your task is to find the real roots of the equation. If the equation has two distinct real roots, print them in descending order separated by a space. If it has one real root, print that single value. If there are no real roots, output the string "No Real Roots".

Note: Use the standard formula (x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}). If the discriminant (b^2 - 4ac) is negative, the roots are imaginary.

inputFormat

The input consists of a single line containing three space-separated numbers (a), (b), and (c), where (a) is non-zero.

outputFormat

Print the real root(s) of the equation as described. For two distinct roots, print the larger one first followed by a space and then the smaller one. If there is one real root, print it once. If there are no real roots, print "No Real Roots".## sample

1 -3 2
2.0 1.0