Rosetta Problems

区間和剰余クエリ (Interval Remainder Query)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/629