Rosetta Problems

Difference Optimization 2

https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_bl