Rosetta Problems

鎖中経路

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