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 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
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
Mathematics, 27.02.2021 02:30
question
Mathematics, 27.02.2021 02:30
question
Arts, 27.02.2021 02:30
question
Arts, 27.02.2021 02:30
Questions on the website: 13722367