美文网首页每周一题
【每周一题】2017.4.17 HDU1010

【每周一题】2017.4.17 HDU1010

作者: whucat | 来源:发表于2017-04-19 09:17 被阅读0次

题目描述

  • (我懒得翻译了,就是一个狗狗走迷宫问它在规定时间是否恰好能到达出口)
  • 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 block for more than one second, nor could he move into a visited block. Can the poor doggie survive? Please help him.
  • 这道题考的是搜索哦,啧啧啧,还是一个需要剪枝的搜索。快点打开IDE吧!
  • 可以把代码提交至这里:http://acm.hdu.edu.cn/showproblem.php?pid=1010

相关文章

  • 【每周一题】2017.4.17 HDU1010

    题目描述 (我懒得翻译了,就是一个狗狗走迷宫问它在规定时间是否恰好能到达出口) The doggie found ...

  • 2017.4.17

    张萌 焦点七期 洛阳坚持分享第2天 因为家离上班地方特别远,上班开车一个小时,下班都得需要一个小时多一点,如果哪天...

  • 2017.4.17

    《爱的五种语言》第28天: 接受礼物 我做了,在束河古镇给女儿、儿子买了东巴铃铛纸牌,纸牌上有东巴图腾和古文,寓意...

  • 2017.4.17

    今天的心情不太好,虽然外面阳光很好。 我想我的内心很脆弱,一点点很小的事情,足以让我的心情奔溃。 事情是这样: 两...

  • 2017.4.17

    善良寡言的人往往容易被忽视,想想这几天对镇雄学员的冷落,心里很不是滋味儿,因为自己的丢三落四,光想着大部队,总是忘...

  • 2017.4.17

    一、完成的事:看书,代跑,跳舞,上课 二、反思总结: 1.第一次代跑,感觉极好极好哒,毕竟坚持跑步了这么久,代跑真...

  • 2017.4.17

    知识改变命运。但当下可被称为知识的东西太多了。要先分辨清楚那些有用哪些没用。还有就是知识是需要长期积累的,要有耐心...

  • 2017.4.17

    人总难免浮躁,尤其看到别人都比你好的时候,总会挣扎如何选择,也会质疑自己的坚持,想着是否换个方式,但最终发现,质疑...

  • 2017.4.17

    所爱隔山海, 山海皆可平.

  • 2017.4.17

    还有比感冒发烧外加来大姨妈更双重身体疲惫感觉的事情了,喝了几包999感冒颗粒,觉得效果也就那样子,体温上上下...

网友评论

    本文标题:【每周一题】2017.4.17 HDU1010

    本文链接:https://www.haomeiwen.com/subject/egjczttx.html