Boolean
Boolean-32
Boolean-33
Boolean-34
~/algor $ cat problems/boolean-haqiqiy-ildiz-bormi
Is there a real root?
Easy
1000 ms
64 MB
20%
The coefficients $a$, $b$ and $c$ of a quadratic equation are given:
$$a * x^{2} + b * x + c = 0$$
Check whether the statement is true: “the equation has at least one real root”.
Input
One line with three integers: $a$, $b$ and $c$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$-1000 \le a, b, c \le 1000$
$a \ne 0$
Examples
Input #1
1 -3 2
Output #1
1
Input #2
1 1 1
Output #2
0