Rosetta Problems

More Realistic Manhattan Distance

https://atcoder.jp/contests/exawizards2019/tasks/exawizards2019_f