Problem 3025 · Medium

Find the Number of Ways to Place People I

Count pairs where one point is upper-left of another and the fence rectangle between them holds no other point.

Open the interactive visualisation