Rosetta Problems

Gold General Goes on the Grid

https://atcoder.jp/contests/past202005-open/tasks/past202005_g