危険なスケート (Dangerous Skating)
Unrated
日本語
Language
Contribute a translation- Time limit
- 3000 ms
- Memory limit
- 256 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
5 5 ##### #...# #...# #...# ##### 2 2 3 3
Sample output 1
4
Sample input 2
8 6 ###### #..#.# ##...# #....# #.#..# #....# ##...# ###### 4 3 6 4
Sample output 2
5
Sample input 3
5 5 ##### #.#.# #.#.# #.#.# ##### 2 2 4 4
Sample output 3
-1
Sample input 4
3 3 ### #.# ### 2 2 2 2
Sample output 4
0
Notes
Tags
No tags yet