摘要: DFS 遍历图 链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=513 种子填充算法:(flood fill) Flood fill算法是从一个区域中 阅读全文
posted @ 2017-12-08 15:16 stvn 阅读(124) 评论(0) 推荐(0) 编辑
摘要: You are working on the team assisting with programming for the Mars rover. To conserve energy, the rover needs to find optimal paths across the rugged 阅读全文
posted @ 2017-12-05 17:27 stvn 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=3117 题意: 求一个数的前四位: 推导公式:f(n) =\frac{1}{\sqrt{5}}[(\frac{1+\sqrt{5}}{2})^{n}(1-(\frac{1-\sqrt{5}}{1+\sqrt{ 阅读全文
posted @ 2017-12-04 10:39 stvn 阅读(121) 评论(0) 推荐(0) 编辑