| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 0 | 0 | 0 | 0.000% |
Consider a cross puzzle (where '-' represents a blank and '#' represents a black square):
- - - - # - - # # - - - - - - - # # - - # - - - -
A word must be at least two characters in length and contiguous as per traditional crossword puzzle rules. In this example, there are five 'across' words and four 'down' words.
Your job is to read in a crossword puzzle and compute the number of words across and down.
5 ----# --##- ----- -##-- #----
5 4