#P5907. 数列求和加强版 / SPOJ MOON4
数列求和加强版 / SPOJ MOON4
Description
Given , , and , compute:
Output the answer modulo .
Input Format
Input one line with three positive integers , , and .
Output Format
Output one line with one integer representing the answer.
6 4 3
1030980
233333333 114514 1919810
3191086
Hint
Constraints
For of the testdata, .
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号