#P4239. 【模板】任意模数多项式乘法逆
【模板】任意模数多项式乘法逆
Description
Given a polynomial , find a polynomial such that . Coefficients are taken modulo .
Input Format
First input an integer , indicating that has degree . Then input integers; the -th integer denotes the coefficient of the term of with degree .
Output Format
Output integers; the -th integer denotes the coefficient of the term of with degree .
5
1 6 3 4 9
1 1000000001 33 999999823 1020
Hint
, .
Translated by ChatGPT 5
京公网安备 11011102002149号