Rosetta Problems

グリッドの復元

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