Problem 3661 · Hard

Maximum Walls Destroyed by Robots

teaching model: sort robots, clip each bullet at the neighbouring robots, then run a two-state DP over left and right choices.

Open the interactive visualisation