| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 4 초 | 2048 MB | 3 | 1 | 1 | 50.000% |
Yolanda just finished moving the furniture around her house. Her house is shaped like a rectangle of side lengths $r$ and $c$. Yolanda wants to choose a place to put her virtual reality (VR) playspace.
Yolanda has some standards for how a VR playspace should be positioned:
Given a map of Yolanda’s house, Yolanda wants to know how many different places she can choose for her VR playspace.
The first line of input contains four integers $r,ドル $c,ドル $s,ドル and $t$ (1ドル ≤ r, c, s, t ≤ 3,円 000$), giving the length and width of Yolanda’s house and the size of her VR playspace.
The next $r$ lines each contain a string of $c$ characters describing Yolanda’s house. Each character is either a dot (.) that denotes an empty square unit of space, or a zero (0) that denotes a square unit of obstacle.
Output a single integer, the number of different places Yolanda can choose for her VR playspace.
4 7 1 2 .....00 .0...0. ..00.0. .0.0.00
6