随笔分类 -  BFS

摘要:The Enterprise is surrounded by Klingons! Find the escape route that has the quickest exit time, and print that time. Input is a rectangular grid; eac 阅读全文
posted @ 2017-08-02 19:49 西北会法语 阅读(179) 评论(0) 推荐(0)
摘要:There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two 阅读全文
posted @ 2017-08-02 19:47 西北会法语 阅读(123) 评论(0) 推荐(0)
摘要:ACM小组的Samsara和Staginner对中国象棋特别感兴趣,尤其对马(可能是因为这个棋子的走法比较多吧)的使用进行深入研究。今天他们又在 构思一个古怪的棋局:假如Samsara只有一个马了,而Staginner又只剩下一个将,两个棋子都在棋盘的一边,马不能出这一半棋盘的范围,另外这 一半棋盘 阅读全文
posted @ 2017-07-31 20:23 西北会法语 阅读(388) 评论(0) 推荐(0)
摘要:Recently, Mike was very busy with studying for exams and contests. Now he is going to chill a bit by doing some sight seeing in the city. City consist 阅读全文
posted @ 2017-07-31 20:22 西北会法语 阅读(131) 评论(0) 推荐(0)
摘要:Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and 阅读全文
posted @ 2017-07-31 20:19 西北会法语 阅读(192) 评论(0) 推荐(0)