{"problem":{"name":"Pawn on a Grid","description":{"content":"There is a grid with $H$ rows from top to bottom and $W$ columns from left to right. Each square has a piece placed on it or is empty. The state of the grid is represented by $H$ strings $S_1, S_2, \\l","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc280_a"},"statements":[{"statement_type":"Markdown","content":"There is a grid with $H$ rows from top to bottom and $W$ columns from left to right. Each square has a piece placed on it or is empty.\nThe state of the grid is represented by $H$ strings $S_1, S_2, \\ldots, S_H$, each of length $W$.  \nIf the $j$\\-th character of $S_i$ is `#`, the square at the $i$\\-th row from the top and $j$\\-th column from the left has a piece on it;  \nif the $j$\\-th character of $S_i$ is `.`, the square at the $i$\\-th row from the top and $j$\\-th column from the left is empty.\nHow many squares in the grid have pieces on them?\n\n## Constraints\n\n*   $1\\leq H,W \\leq 10$\n*   $H$ and $W$ are integers.\n*   $S_i$ is a string of length $W$ consisting of `#` and `.`.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$H$ $W$\n$S_1$\n$S_2$\n$\\vdots$\n$S_H$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc280_a","tags":[],"sample_group":[["3 5\n#....\n.....\n.##..","3\n\nThe following three squares have pieces on them:\n\n*   the square at the $1$\\-st row from the top and $1$\\-st column from the left;\n*   the square at the $3$\\-rd row from the top and $2$\\-nd column from the left;\n*   the square at the $3$\\-rd row from the top and $3$\\-rd column from the left.\n\nThus, $3$ should be printed."],["1 10\n..........","0\n\nSince no square has a piece on it, $0$ should be printed."],["6 5\n#.#.#\n....#\n..##.\n####.\n..#..\n#####","16"]],"created_at":"2026-03-03 11:01:14"}}