随笔分类 -  我的dp之路

上一页 1 2 3 4 5 6

hdu4223(dp)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4223由于n范围较小,完全可暴力。。。#include #include #include #include #include #include #include #include #include #d... 阅读全文

posted @ 2014-11-24 12:42 lienus 阅读(366) 评论(0) 推荐(0)

hdu2563(递推dp)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2563解题思路:要分两种情况来考虑,a(n)为向上,b(n)为向左跟向右,f(n)为当前方案数。a(n) = a(n-1) + b(n-1);因为向上只有一个方向。b(n) = a(n-1) * 2 + ... 阅读全文

posted @ 2014-11-24 12:16 lienus 阅读(194) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6

导航