luogu#P4725. 【模板】多项式对数函数(多项式 ln)
【模板】多项式对数函数(多项式 ln)
Problem Description
Given a polynomial of degree , find a polynomial modulo such that .
All computations are done modulo , and .
Input Format
The first line contains an integer .
The next line contains integers, which are the coefficients of the polynomial in order.
It is guaranteed that .
Output Format
Output integers, which are the coefficients of the answer polynomial in order.
6
1 927384623 878326372 3882 273455637 998233543
0 927384623 817976920 427326948 149643566 610586717
Hint
For of the data, .
Translated by ChatGPT 5