2017年4月2日

hdu_1012(水题。。。不能再水)

摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 long long mp[10]; 7 double ans[10]; 8 void init(){ 9 mp[0] = mp[1] = 1; 10 for(int i = 2; i <= 9; i++){ 11 ... 阅读全文

posted @ 2017-04-02 11:21 若流芳千古 阅读(160) 评论(0) 推荐(0) 编辑

hdu_1011(Starship Troopers) 树形dp

摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1011 题意:打洞洞收集脑子,你带领一个军队,洞洞互联成一棵树,每个洞中有一些bug,要全部杀死这些虫子才可以取得这个洞中的脑子,只有杀死当前节点的bug才可以继续走下去,且如果有0个bug你仍要派遣一个 阅读全文

posted @ 2017-04-02 11:08 若流芳千古 阅读(197) 评论(0) 推荐(0) 编辑

导航