Board Coloring and Query Processing
Consider a rectangular h × w board with all cells initially white. You are to process several queries of the following types:
- "x a b" - color the white cell (a, b) (0-based coordinates, the fir...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
