#P1313. [NOIP 2011 提高组] 计算系数
[NOIP 2011 提高组] 计算系数
Description
Given a polynomial , compute the coefficient of the term in its expansion.
Input Format
The input contains one line with integers, namely , separated by a single space.
Output Format
Output one line containing a single integer, which is the required coefficient. This coefficient may be large; output the result modulo .
1 1 3 1 2
3
Hint
Constraints
- For of the testdata, .
- For of the testdata, , .
- For of the testdata, , , , .
NOIP 2011 Senior Day 2 Problem 1.
Translated by ChatGPT 5
京公网安备 11011102002149号