摘要: 题目: Nowadays, there are more and more challenge game on TV such as 'Girls, Rush Ahead'. Now, you participate int a game like this. There are N rooms. 阅读全文
posted @ 2017-10-25 18:20 AseanA 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 题目: 国家探险队长 Jack 意外弄到了一份秦始皇的藏宝图,于是,探险队一行人便踏上寻宝之旅,去寻找传说中的宝藏。 藏宝点分布在森林的各处,每个点有一个值,表示藏宝的价值。它们之间由一些小路相连,小路不会形成环,即两个藏宝点之间有且仅有一条道路。探险队从其中的一点出发,每次他们可以留一个人在此点开 阅读全文
posted @ 2017-10-25 14:40 AseanA 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 题目: A tree with N nodes and N-1 edges is given. To connect or disconnect one edge, we need 1 unit of cost respectively. The nodes are labeled from 1 t 阅读全文
posted @ 2017-10-25 11:30 AseanA 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 题目: Bob wants to hold a race to encourage people to do sports. He has got trouble in choosing the route. There are N houses and N - 1 roads in his vil 阅读全文
posted @ 2017-10-25 09:41 AseanA 阅读(250) 评论(0) 推荐(0) 编辑