5 ##... .##.. #.#.. ..... ....#
4 By choosing the subsquares below, Takahashi will consume $4$ stamina points, which is optimal. * The $3 \times 3$ subsquare whose top-left square is at the $1$\-st row from the top and $1$\-st column from the left. * The $1 \times 1$ subsquare whose top-left square is at the $5$\-th row from the top and $5$\-th column from the left.
3 ... ... ...
0 There may be no block on the grid.
21 ..................... ..................... ...#.#............... ....#.............#.. ...#.#...........#.#. ..................#.. ..................... ..................... ..................... ..........#.....#.... ......#..###......... ........#####..#..... .......#######....... .....#..#####........ .......#######....... ......#########...... .......#######..#.... ......#########...... ..#..###########..... .........###......... .........###.........
19
{
"problem": {
"name": "Strongest Takahashi",
"description": {
"content": "There is a $N \\times N$ grid, with blocks on some squares. The grid is described by $N$ strings $S_1,S_2,\\dots,S_N$, as follows. * If the $j$\\-th character of $S_i$ is `#`, there is a block on th",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc233_g"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is a $N \\times N$ grid, with blocks on some squares. \nThe grid is described by $N$ strings $S_1,S_2,\\dots,S_N$, as follows.\n\n* If the $j$\\-th character of $S_i$ is `#`, there is a block on th...",
"is_translate": false,
"language": "English"
}
]
}