2 3 2
26 Below, let $(i, j)$ denote the cell at the $i$\-th row from the top and the $j$\-th column from the left. Also, let `.`, `1`, `2` denote an uncolored cell, a cell colored with color $1$, a cell colored with color $2$, respectively. From the initial grid in Sample Input 1, if you first choose color $2$ and cell $(2, 2)$, the grid becomes: .2. 222 Then, if you choose color $1$ and cell $(1, 1)$, the grid becomes: 111 122 All cells are colored in this grid, so it satisfies the condition in the problem statement. Furthermore, if you then choose color $1$ and cell $(1, 3)$, the grid becomes: 111 121 All cells are again colored in this grid, satisfying the condition in the problem statement.
3 2 1
1
229 327 763027379
547014653
{
"problem": {
"name": "Grid Coloring 3",
"description": {
"content": "There is a grid of $H$ rows and $W$ columns. Initially, all cells are uncolored. You can repeat the following procedure any number of times: * Choose an integer $i$ between $1$ and $C$, inclusive, ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 4000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc193_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is a grid of $H$ rows and $W$ columns. Initially, all cells are uncolored.\nYou can repeat the following procedure any number of times:\n\n* Choose an integer $i$ between $1$ and $C$, inclusive, ...",
"is_translate": false,
"language": "English"
}
]
}