Rosetta Problems

Atcoder Educational DP Contest Y - Grid 2

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