#P6828. 任意模数 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 .
6 108616 6
1 0 8 6 1 6
22 772456230 866731294 299746576 978045696 394365866
Hint
For of the testdata, , .
| Test Point ID | Limits on |
| :-----------: | :-----------: |
| | |
| | |
| | |
| | |
| | |
The problem setter regrets that, due to precision and the limitations of Luogu’s built-in materials, it cannot be extended to .
Hint: FFT runs might not pass.
Hint: The problem setter did not use long double.
Translated by ChatGPT 5
京公网安备 11011102002149号