# 迷宫问题

Time Limit: 1000 ms

Memory Limit: 65535 kb

[显示标签]

## Sample Input

5 5
1 0 0 0 0
1 1 1 1 0
0 1 0 1 0
0 1 1 1 1
1 1 0 0 1
1 1
5 5

## Sample Output

9
# # # # # # #
# * # # # # #
# * * * * # #
# # @ # * # #
# # @ @ * * #
# @ @ # # * #
# # # # # # #
(1,1)(2,1)(2,2)(2,3)(2,4)(3,4)(4,4)(4,5)(5,5)


None

YangWen