#K12566. Determine the Nature of Roots of Quadratic Equations

    ID: 23719 Type: Default 1000ms 256MiB

Determine the Nature of Roots of Quadratic Equations

Determine the Nature of Roots of Quadratic Equations

Given a set of quadratic equations, determine the nature of the roots of each equation using the discriminant formula: \(D = b^2 - 4ac\).

The quadratic equation is given in the form \(ax^2 + bx + c = 0\). If \(D > 0\), the equation has Real and Distinct roots; if \(D = 0\), it has Real and Equal roots; otherwise, it has Complex roots.

inputFormat

The input begins with an integer \(n\) indicating the number of quadratic equations. Each of the following \(n\) lines contains three space-separated integers \(a\), \(b\), and \(c\), representing the coefficients of the quadratic equation \(ax^2 + bx + c = 0\).

outputFormat

Output exactly \(n\) lines. Each line should be one of the following strings based on the nature of the roots: 'Real and Distinct', 'Real and Equal', or 'Complex'.

## sample
1
1 -3 2
Real and Distinct

</p>