luogu#P4948. 数列求和
数列求和
Problem Description
Given , compute:
Output the answer modulo .
Input Format
Input one line with three non-negative integers . Here .
Output Format
Output one line with one integer representing the answer.
3 4 0
84
3 10 1
3210
3 9 2
6894
Hint
| Test Point ID | ||
|---|---|---|
For of the testdata, , , and .
Translated by ChatGPT 5