#P6613. 一阶微分方程
一阶微分方程
Description
Given polynomials , , and satisfying:
$$\frac{\text dF(x)}{\text dx} \equiv A(x)\text e^{F(x)-1}+B(x) \pmod{x^n}$$and .
Given and , find the coefficients of the first terms of .
Output the answer modulo .
Input Format
The first line contains a positive integer , representing the degree of and .
The second line contains integers, from low degree to high degree, representing the coefficients of .
The third line contains integers, from low degree to high degree, representing the coefficients of .
Output Format
Output one line with integers, from low degree to high degree, representing the coefficients of .
9
2 9 8 7 3 6 5 4 1 12
23 9 8 7 4 6 1 3 2 5
1 25 34 332748429 124783260 22560 624092696 904826719 284383572 50973515
Hint
Constraints
For of the testdata, .
For of the testdata, .
All inputs are guaranteed to be in the range .
Translated by ChatGPT 5
京公网安备 11011102002149号