K. Polynomial Construction
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
3 2 2
2 6 -6
2 -3
Output
4
6 -7 -6 2 1
6
-36 6 12 -7 -6 2 1