Problem 3968 · Medium

Maximum Manhattan Distance After All Moves

Fixed moves set a position. Each wildcard can be any direction, so send every wildcard the way that increases the final distance from the origin.

Open the interactive visualisation