Rosetta Problems

島渡り

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/443