2014年10月28日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1053#include #include #include #include #include using namespace std; int a[30];char s[1005];int cal(char ... 阅读全文
posted @ 2014-10-28 17:28 LegendaryAC 阅读(986) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1069题意:n种木块问最多可以摆多高,每种有无数个,上面木块的长宽必须分别小于下面木块的长宽注意到每种无数个这个条件是虚的,其实只有三种。dp[i]表示以第 i 块为底可以摆放的最大高度#include #incl... 阅读全文
posted @ 2014-10-28 14:11 LegendaryAC 阅读(137) 评论(0) 推荐(0) 编辑