#P5383. 普通多项式转下降幂多项式
普通多项式转下降幂多项式
Background
This is a template problem.
Problem Description
Given an ordinary polynomial .
Find a falling-factorial polynomial $G(x)=\displaystyle\sum_{i=0}^{n-1}b_ix^{\underline{i}}$.
Such that .
All operations are performed modulo .
Input Format
The first line contains a positive integer , as described above.
The second line contains numbers. The -th number represents .
Output Format
Output one line with numbers. The -th number is .
3
1 1 1
1 2 1
Hint
For all testdata, .
This problem has a total of subtasks.
Among them, subtasks have .
The other subtasks have .
Translated by ChatGPT 5