#P7102. [W1] 算
[W1] 算
Problem Description
There is an -term polynomial and two parameters and , where .
Define a new function :
Please compute .
Input Format
The first line contains three positive integers .
The second line contains positive integers .
Output Format
Output lines. The -th line contains one positive integer .
8 10 4
3 1 4 1 5 9 2 6
35683652
171899188
780914481
858211065
Hint
For of the testdata, .
For of the testdata, .
For of the testdata, .
For another of the testdata, .
For all testdata, $1\le t\le2\cdot10^5,1\le m\le2\cdot10^5,1\le c\le10^{18}$.
Translated by ChatGPT 5