摘要: http://poj.org/problem?id=3070     Description In the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn − 1 + Fn − 2 for n ≥ 2. For example, the 阅读全文
posted @ 2016-03-15 17:27 啦咯 阅读(785) 评论(0) 推荐(0) 编辑
摘要: As you know, Bob's brother lives in Flatland. In Flatland there are n cities, connected by n - 1 two-way roads. The cities are numbered from 1 to n. Y 阅读全文
posted @ 2016-03-15 15:05 啦咯 阅读(417) 评论(0) 推荐(0) 编辑
摘要: http://lightoj.com/volume_showproblem.php?problem=1094 Given a tree (a connected graph with no cycles), you have to find the farthest nodes in the tre 阅读全文
posted @ 2016-03-15 13:28 啦咯 阅读(214) 评论(0) 推荐(0) 编辑