两个吃奶一个添下面视频_人妻第一页香蕉网_欧美xxxx少妇_妺妺窝人体色www婷婷

2192 問題 B: Maze

時間限制: 1s 內存限制: 128MB 提交: 48 解決: 4
題目描述

There was a man who was addicted to find the right way of the mazes. One day, by accident, he got a maze. However, because of the superior difficulty, he can't find the right way, so he ask you for help.

Write a program to solve a maze by the shortest route possible.
The maze should be read from the standard input. The first line of input will be the number of lines of input in the maze followed by the number of columns in each line.
Each piece of the maze is defined using a single letter:
-W means this piece is a wall and cannpt be passed through
-C means this piece is a corridor and can be passed through
-S means that this piece is the start location
-E means that this piece is the end location
Each entry on the line is separated by a single space. 

輸入
first line you should input two numbers m,n to describe the size of the maze
next m lines you should enter the whole maze.
(m,n<=36)
輸出
Output should be the same maze only with the shortest route marked using X's. 
If there is no possible solution to the maze the result should be "There is no solution to this maze"
樣例輸入
10 11
W W W W W W W W W W W
W S W C C C W C C C W
W C W C W C W C W W W
W C W C W C W C C C W
W C W C W C W W W W W
W C C C W C W C C C W
W C W C W C C C W W W
W C W C W C W C C C W
W C W W W C W W W E W
W W W W W W W W W W W
樣例輸出
W W W W W W W W W W W
W X W X X X W C C C W
W X W X W X W C W W W
W X W X W X W C C C W
W X W X W X W W W W W
W X X X W X W C C C W
W C W C W X X X W W W
W C W C W C W X X X W
W C W W W C W W W X W
W W W W W W W W W W W
提示
零基礎同學可以先學習視頻課程,包含C/C++、Python、百練、藍橋杯輔導、算法數(shù)據(jù)結構等課程,提供視頻講解以及配套習題,還有老師答疑,點擊這里了解課程詳情

比賽公告

題號:2191,2192,2193,2194,2195,2196,2197,2198,2199,2200

點擊上方導航欄的訓練,點擊題庫,尋找題號即可找到對應題目,比賽結束后,請通過訓練->題庫->尋找對應題目的方式做題

因為不確定因素太多,就不再安排大家輪流講題了,大家做不出題可以在測試結束后去題庫找對應的題目看題解,希望大家自覺練習,認真練習,考核測試會采取不同與現(xiàn)在測試的方式,兩個月后綜合測試成績不達標者會退出實驗室,希望大家認真對待