Rosetta Problems

Vertical Reading of a Memoir

https://atcoder.jp/contests/awc0175/tasks/awc0175_b