![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
文章平均质量分 76
晨风丶
这个作者很懒,什么都没留下…
展开
-
HDU1069-Monkey and Banana(DP算法)
题意:有n种长方体型的砖,每种有无数块,长宽高(x,y,z),砖可以任意翻转, 现把砖块一个一个叠起来,求能叠最高的高度,其中限定(放在上面的砖块的底面长宽都必须小于 放在下面的砖块)。 题解:DP算法 #include #include #define maxn 100+5 #define max 999999999 //表示地面的底面,无限大原创 2016-11-02 23:25:44 · 239 阅读 · 0 评论 -
HDU1022Train Problem I(栈的应用)
#include #include #include #define maxn 1000000+10 using namespace std; char s1[maxn]; char s2[maxn]; int n; stack stack1; int a[maxn]; //保存操作次序,0表示入栈,1表示出栈 int IsOk()原创 2016-10-12 19:09:57 · 187 阅读 · 0 评论