Problem3386--【Div2】abc400d-Takahashi the Wall Breaker

3386: 【Div2】abc400d-Takahashi the Wall Breaker

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description



Sample Input Copy

10 10
..........
#########.
#.......#.
#..####.#.
##....#.#.
#####.#.#.
.##.#.#.#.
###.#.#.#.
###.#.#.#.
#.....#...
1 1 7 1

Sample Output Copy

1

Source/Category