subject

You are in a 3D labyrinth of Conflict Empire and you want to escape it. The labyrinth could be represented as a three dimensional array where every cell is either empty or filled by rock. In every minute, you can travel in any direction parallel to the edges of the labyrinth, i. e. north, south, east, west, up and down, by one cell. You are not allowed to step onto a rock cell nor allowed to travel out of the labyrinth without reaching the exit point. Given the starting point and the exit point, your task is to determine the minimum time needed to escape this labyrinth. Input
The first line of the input contains three integers K, N and M (1 <= K, N,M <= 30), indicating the number of layers, rows and columns of the labyrinth, respectively. Then there follows K blocks of N lines each containing M characters. Each character describes one cell of the labyrinth, where # indicates a cell of rock and indicates an empty cell. The starting position is indicated by S and the exit by E. S and E never overlap, they are always at distinct locations. There is always exactly one starting position and one exit position. There will be a single blank line after each level.
Output х is the minimum time needed to escape this labyrinth, or Print one line Escaped in x minute(s). where Trapped! if it is impossible to escape. Example 1 Input: 3 4 5 S .###. .##..##.## ##... #.### E Output: Escaped in 11 minute(s). Example 2 Input: 1 3 3 S## #E# ### Output: Trapped!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:50
A911 dispatcher is the sole sender of messages to all police officers. while on patrol, officers communicate with the dispatcher who, in turn, relays messages to other officers. the officers do not communicate directly with one another. this illustrates a network.
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Which of the following is not a “fatal four” event?
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
After making a powerpoint presentation about a new line of clothing designs, henri notices that he used the word “gorgeous” on nearly every slide. what would be the  best  way to add more variety to his wording by using tools within powerpoint? using the thesaurus under the view tab, and then using the find dialog box to find and replace every instance of “gorgeous”using the spelling checker under the view tab, and then using the find dialog box to find every instance of “gorgeous” and change some of themusing the thesaurus under the review tab, and then using the find dialog box to find every instance of “gorgeous” and change some of themusing the spelling checker under the review tab, and then using the find dialog box to find and replace every instance of “gorgeous”
Answers: 2
question
Computers and Technology, 25.06.2019 07:10
When you “listen” to evaluate an online message, which question should you ask?
Answers: 1
You know the right answer?
You are in a 3D labyrinth of Conflict Empire and you want to escape it. The labyrinth could be repre...
Questions
question
Social Studies, 26.02.2021 01:00
question
English, 26.02.2021 01:00
question
Mathematics, 26.02.2021 01:00
question
English, 26.02.2021 01:00
question
Mathematics, 26.02.2021 01:00
question
Mathematics, 26.02.2021 01:00
Questions on the website: 13722367