3 3 ... .#. ...
4 For example, if we install two surveillance cameras at square $(1, 1)$ facing right and down, and another two at square $(3, 3)$ facing up and left, all squares without an obstacle will be monitored.
3 5 ...## .#... ...#.
5 For example, if we install two surveillance cameras at square $(1, 1)$ facing right and down, another at square $(3, 3)$ facing left, and another two at square $(2, 5)$ facing left and down, all squares without an obstacle will be monitored. Note that the camera at square $(2, 5)$ facing left cannot monitor square $(2, 1)$, since there is an obstacle in between at square $(2, 2)$.
14 107 ........................................................................................................... ........................................................................................................... ..#########..###....###########..###.......###...###########..####.......###...###########...###########... ..########..###....###########....###.....###...###########...#####......###..###########...###########.... ..#######..###.....###.............###...###....###...........######.....###..###...........###............ ..######..###......###..............###.###.....###...........###.###....###..###...........###............ ..#####..###.......############......#####......############..###..###...###..###...........############... ..####....###......############.......###.......############..###...###..###..###...........############... ..###......###.....###................###.......###...........###....###.###..###...........###............ ..##........###....###................###.......###...........###.....######..###...........###............ ..#..........###...############.......###.......############..###......#####..############..############... ..............###...###########.......###........###########..###.......####...###########...###########... ........................................................................................................... ...........................................................................................................
91
{
"problem": {
"name": "Security Camera 3",
"description": {
"content": "There is a grid with $H$ rows from top to bottom and $W$ columns from left to right. Let $(i, j)$ denote the square at the $i$\\-th row from the top and $j$\\-th column from the left. Square $(i, j)$ ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc274_g"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is a grid with $H$ rows from top to bottom and $W$ columns from left to right. Let $(i, j)$ denote the square at the $i$\\-th row from the top and $j$\\-th column from the left. \nSquare $(i, j)$ ...",
"is_translate": false,
"language": "English"
}
]
}