#P6800. 【模板】Chirp Z-Transform
【模板】Chirp Z-Transform
Description
Given an -term polynomial and , compute . All answers are taken modulo .
Input Format
The first line contains three positive integers .
The second line contains non-negative integers , representing the coefficients of from low degree to high degree.
Output Format
Output one line with positive integers. The -th number represents .
3 3 3
3 3 3
9 39 273
Hint
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号