PP1 and Competitive Programming
Write a program to solve a quadratic equation a
x2 + bx + c = 0 (a ≠ 0).
Three integers - the coefficients of quadratic equation are given in one line: a, b and c. The values of coefficients do not exceed 100 by absolute value.
Print in one line the message "No roots" (without quotes) if there is no roots. If equation contains only one root, print "One root:" (without quotes), space and a root. In the case of two roots, print "Two roots:" (without quotes), space, first smaller, and then larger root. It is guaranteed that if the roots exist, they are integers.
1 -5 6
Two roots: 2 3
1 5 6
Two roots: -3 -2