Rosetta Problems

Same Map in the RPG World

https://atcoder.jp/contests/abc300/tasks/abc300_b