Problem 2511 · Easy

Maximum Enemy Forts That Can Be Captured

Scan the forts and measure the gap between each pair of opposite boundary forts whose interior is all enemy forts.

Open the interactive visualisation