Rosetta Problems

鉄道路線II

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