luogu_P3373 solution
- 2020 年 8 月 30 日
- 筆記
luogu_P3373 solution
Problme Description
Now, you have a known series, there are three operations:
- Mutiple \(x\) to all numbers from section \([l, r]\).
- Add \(x\) to all numbers from section \([l, r]\).
- Get the sum of section \([l, r]\).
Input Format
The first line contains three integer $n$, $m$, $p$,which means that the length of the series, the numbers of operations and the mod.