Codeforces Round #630 (Div. 2) D. Walk on Matrix (思维&DP)

NoSuchKey