Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
做好事, 发点测试数据。。。Input: 7 8 8 ######## #......# #.####.# #.####.# #.####.# #.####.# #...#..# #S#E#### 9 5 ######### #.#.#.#.# S.......E #.#.#.#.# ######### 3 3 ### S.# #E# 40 40 ######################################E# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #......................................# #S###################################### 40 40 ######################################## #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#..# #......................................# #S#E#################################### 40 40 #E###################################### S......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# ######################################.# #......................................# #......................................# ######################################## 11 11 #S######### #.........# #.#.#.#.#.# #...#...#.# #####.###.# #...#.#...# #.#...#.#.# #..##.#...# #.#.#.###.# #...#.#...# #####E##### ======================================================= Output: 37 5 5 17 17 9 3 3 3 77 77 77 1481 5 5 3 1483 3 47 45 15 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator