| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 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
ICPC > Regionals > North America > Southeast USA Regional > 2024 Southeast USA Regional Programming Contest > Division 1 M번
ICPC > Regionals > North America > South Central USA Regional > 2024 South Central USA Regional Contest > Division 1 M번
ICPC > Regionals > North America > Mid-Atlantic Regional > 2024 Mid-Atlantic USA Regional Contest > Division 1 M번