Rosetta Problems

イベント巡り 2 (Event Hopping 2)

https://atcoder.jp/contests/joisc2021/tasks/joisc2021_k