Problem 3283 · Hard

Maximum Number of Moves to Kill All Pawns

Precompute knight distances between points, then minimax over the set of captured pawns with a bitmask DP.

Open the interactive visualisation