Rosetta Problems

JJOOII 2 (JJOOII 2)

https://atcoder.jp/contests/joi2020ho/tasks/joi2020ho_b