Practice · 3 of 3
Difference Discipline
CHALLENGE
Difficulty: advanced+25 XP
**Problem.** Line 1: n q. Then q lines: l r v (add v on [l, r]). Print the checksum: sum of final values mod 1e9+7. **Constraints:** 1 ≤ n, q ≤ 200000; |v| ≤ 10. The cancel point is r+1, not r.
Press Submit to check your solution.
Back to lesson: Practice: Bug Hunt