Rosetta Problems

橋の建造計画

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