Tempter of the Bone(dfs)

25 篇文章 0 订阅
21 篇文章 0 订阅
一只小狗在古老的迷宫中发现了一根骨头,但当他捡起它时,迷宫开始震动,地面开始下沉。小狗意识到这是一个陷阱,他必须在门开启的特定时间逃出迷宫。迷宫为N*M的矩形,有一扇在T秒时开启的门。小狗每秒可以移动到相邻的空格,但不能停留或重复经过已下沉的空格。如果能恰好在T秒到达门,则小狗能够存活,否则无法逃脱。
摘要由CSDN通过智能技术生成

Description

The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He realized that the bone was a trap, and he tried desperately to get out of this maze. 

The maze was a rectangle with sizes N by M. There was a door in the maze. At the beginning, the door was closed and it would open at the T-th second for a short period of time (less than 1 second). Therefore the doggie had to arrive at the door on exactly the T-th second. In every second, he could move one block to one of the upper, lower, left and right neighboring blocks. Once he entered a block, the ground of this block would start to sink and disappear in the next second. He could not stay at one

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值