­

luogu_P3373 solution

  • 2020 年 8 月 30 日
  • 筆記

luogu_P3373 solution

Problme Description

 Now, you have a known series, there are three operations:

  1. Mutiple \(x\) to all numbers from section \([l, r]\).
  2. Add \(x\) to all numbers from section \([l, r]\).
  3. 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.