Black-and-white field
You are tasked with creating a grid of size (), where each cell is either white or black.
You are given two numbers, and . The grid must contain exactly white components and black components.
A component of a specific color is defined as the largest group of adjacent cells of that color, where each cell in the group can be reached from any other cell in the same group by moving only through cells of the same color. Movement is allowed to adjacent cells that share a side (left, right, up, or down), but not diagonally.
Your task is to construct any grid of any size that contains exactly white components and black components.
Input
The first line contains two integers and ().
Output
Output two integers and () representing the dimensions of the grid.
For each of the next rows, output numbers (), where indicates a white cell and indicates a black cell.
Examples
Scoring
Solutions that correctly handle cases where will receive at least points.
Solutions that correctly handle cases where will receive at least points.