Rosetta Problems

ビットすごろく

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