Rosetta Problems

Atcoder Educational DP Contest H - Grid 1

https://oj.vnoi.info/problem/atcoder_dp_h