摘要: 看完题目的长度以后应该就知道这题有多变态了。。。 接下来你将看到代码的长度。。。 无脑BFS+无脑的各种方向转换。 特别注意输出的各种回车空格。 用par数组记录父节点,顺便用来判重(如果没有父节点即为第一次搜到)。 据说用递归输出结果会栈溢出,于是用栈。注意虽然没有搜过起点,起点也要入栈。 每个状 阅读全文
posted @ 2016-03-13 21:42 Orion_7 阅读(216) 评论(0) 推荐(0) 编辑
摘要: The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of 阅读全文
posted @ 2016-03-13 14:25 Orion_7 阅读(168) 评论(0) 推荐(0) 编辑
摘要: A quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into four quadran 阅读全文
posted @ 2016-03-13 13:59 Orion_7 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 因为复制过来排版很乱,所以上截图。 利用先序的特性可以递归处理。 阅读全文
posted @ 2016-03-13 13:36 Orion_7 阅读(133) 评论(0) 推荐(0) 编辑