-->
当前位置:首页 > 题库

PROGRAMMING:Integer solutions of quadratic equation with one variable

Luz5年前 (2021-05-10)题库430
Keyboard input integer a, B, C, analysis equation $$ax ^ 2 + BX + C = 0 $$has several integer roots and output.
###Input format:
Three integers in a row represent the coefficients a, B and C respectively.
###Output format:
The first line outputs the number of integer roots n. if n > 0, the second line outputs n integer roots in increasing order, leaving a space between the two numbers (no space at the end).
###Input example:
Here is a set of inputs. For example:
```in
1 6 5
```
```in
0 4 8
```
###Output example:
The corresponding output is given here. For example:
```out
two
-5 -1
```
```out
one
-2
```






answer:If there is no answer, please comment