{"problem":{"name":"Counting Squares","description":{"content":"There is a two-dimensional plane. For integers $r$ and $c$ between $1$ and $9$, there is a pawn at the coordinates $(r,c)$ if the $c$\\-th character of $S_{r}$ is `#`, and nothing if the $c$\\-th charac","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc275_c"},"statements":[{"statement_type":"Markdown","content":"There is a two-dimensional plane. For integers $r$ and $c$ between $1$ and $9$, there is a pawn at the coordinates $(r,c)$ if the $c$\\-th character of $S_{r}$ is `#`, and nothing if the $c$\\-th character of $S_{r}$ is `.`.\nFind the number of squares in this plane with pawns placed at all four vertices.\n\n## Constraints\n\n*   Each of $S_1,\\ldots,S_9$ is a string of length $9$ consisting of `#` and `.`.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$S_1$\n$S_2$\n$\\vdots$\n$S_9$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc275_c","tags":[],"sample_group":[["##.......\n##.......\n.........\n.......#.\n.....#...\n........#\n......#..\n.........\n.........","2\n\nThe square with vertices $(1,1)$, $(1,2)$, $(2,2)$, and $(2,1)$ have pawns placed at all four vertices.\nThe square with vertices $(4,8)$, $(5,6)$, $(7,7)$, and $(6,9)$ also have pawns placed at all four vertices.\nThus, the answer is $2$."],[".#.......\n#.#......\n.#.......\n.........\n....#.#.#\n.........\n....#.#.#\n........#\n.........","3"]],"created_at":"2026-03-03 11:01:14"}}