A=B
評價次數不足
Portal Maze
   
獎勵
加入最愛
已加入最愛
移除最愛
標籤: level
檔案大小
發佈於
1.516 MB
2022 年 4 月 14 日 下午 3:39
1 項更新註記 (檢視)

訂閱以下載
Portal Maze

描述
Input: A string of the maze including
> exactly one "a" as your start;
> exactly one "b" as the goal;
> "_"s as floors you can walk on;
> "|"s as walls you can't pass;
> "h"s as hammers that allow you to break one wall per hammer;
> "p"s as portals that allow you to teleport from one to another.
Output: Return true if you can reach the "b" after starting from the "a", else return false.
Constraint: Input length = 7
熱門討論 檢視全部(1)
6
2024 年 4 月 25 日 下午 11:23
This problem is so great!
SoMall-dumpling
2 則留言
garr890354839 9 月 22 日 下午 4:55 
Took me 121 lines to solve... how on EARTH is 30 possible?
ymfact 2022 年 4 月 21 日 上午 8:50 
I did it!