#P2312. [NOIP 2014 提高组] 解方程
[NOIP 2014 提高组] 解方程
Description
Given the polynomial equation:
Find all integer solutions of this equation in (both and are positive integers).
Input Format
The input contains lines.
The first line contains two integers , separated by a single space.
Each of the next lines contains one integer, namely in order.
Output Format
On the first line, output the number of integer solutions in .
Then output each integer solution in in increasing order, one per line.
2 10
1
-2
1
1
1
2 10
2
-3
1
2
1
2
2 10
1
3
2
0
Hint
For of the testdata: 。
For of the testdata: 。
For of the testdata: 。
For of the testdata: 。
Translated by ChatGPT 5
京公网安备 11011102002149号