上一页 1 ··· 24 25 26 27 28

2014年11月24日

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 阅读(363) 评论(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 阅读(193) 评论(0) 推荐(0)

2014年10月1日

【转】一些图论、网络流入门题总结、汇总

摘要: 最短路问题 此类问题类型不多,变形较少POJ 2449 Remmarguts' Date(中等) http://acm.pku.edu.cn/JudgeOnline/problem?id=2449 题意:经典问题:K短路 解法:dijkstra+A*(rec),方法很多 相关:http://acm.... 阅读全文

posted @ 2014-10-01 22:39 lienus 阅读(118) 评论(0) 推荐(0)

上一页 1 ··· 24 25 26 27 28

导航