Problem 598 · Easy

Range Addition II

After several top-left rectangle increments, count how many cells hold the largest value. The visual shades the overlapping corner region and shows that its area is the answer.

Open the interactive visualisation