Rosetta Problems

鉄道乗り継ぎ

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