Rosetta Problems

Bridge and Sheets

https://atcoder.jp/contests/arc134/tasks/arc134_a