![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DP
八云闲者
这个作者很懒,什么都没留下…
展开
-
度度熊与邪恶大魔王(DP)
……………………原创 2017-08-06 14:36:46 · 236 阅读 · 0 评论 -
dp:数位dp的不详细解释(hdu3555)
首先来一道题目hdu3555 : http://acm.hdu.edu.cn/showproblem.php?pid=3555题目大意是让你在1~n之间找到含有'49'的数字,比如2491,88949,4900等之后代码:#include<iostream>#include<cstdio>#include<vector>#include<algori...原创 2018-04-12 11:35:46 · 170 阅读 · 0 评论 -
[dp] 对hdu4747 Mex 的详解
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=4747题目大意:给一个含有n个数的序列 ns[1~n]定义函数 mex(l,r)为区间 [l,r] 中未出现的最小的非负整数求序列ns所有区间的 mex 和可以表示为:for( l=1 ; l<=n ; l++) for( r=l ; r<=n ; r++) sum += mex( l...原创 2018-04-22 21:04:49 · 1277 阅读 · 2 评论