Rosetta Problems

あみだくじ (Amidakuji)

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