Problem 1274 · Hard

Number of Ships in a Rectangle

Rectangles that report ships are halved along the longer side, and the counts from both halves are added until single cells remain.

Open the interactive visualisation