Rosetta Problems

Sum of Min of Mod of Linear

https://atcoder.jp/contests/arc182/tasks/arc182_e