Question 14
Beaver is in a two-floor maze. On either floor, moving between edge-adjacent cells takes one second if no thick wall blocks the move. Switching magically to the corresponding cell on the other floor takes five seconds.

“Tầng 1” and “Tầng 2” mean Floor 1 and Floor 2. For example, from A it can move down or left in one second, or switch to C on Floor 2 in five seconds. What is the shortest time from A to B?

“Tầng 1” and “Tầng 2” mean Floor 1 and Floor 2. For example, from A it can move down or left in one second, or switch to C on Floor 2 in five seconds. What is the shortest time from A to B?