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, 21.06.2019 22:30
Type the correct answer in the box. spell all words correctly.what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
question
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
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
Health, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
English, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
Social Studies, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
English, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
Geography, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
Biology, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
Physics, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
History, 11.09.2020 23:01
question
Mathematics, 11.09.2020 23:01
question
History, 11.09.2020 23:01
Questions on the website: 13722363