Rosetta Problems

島巡り (Island Hopping)

https://atcoder.jp/contests/joigsp2024/tasks/joigsp2024_g