Rosetta Problems

Matrix Compressor

https://atcoder.jp/contests/utpc2021/tasks/utpc2021_g