
DP数位dp
文章平均质量分 60
LeeBooL
这个作者很懒,什么都没留下…
展开
-
UVALive 3782 Bigger is Better
#include #include #include #include using namespace std; #define maxn 110 #define maxm 3010 int dp[maxn][maxm]; int cnum[10] = {6, 2, 5, 5, 4, 5, 6, 3, 7, 6 }; int next[maxn][maxm], max_len; voi原创 2014-11-16 23:12:37 · 495 阅读 · 0 评论 -
Hdu 3555
#include #include #include #include using namespace std; #define maxn 22 #define LL __int64 int digit[maxn]; LL dp[maxn][3]; void init() { dp[0][0] = 1; for( int原创 2014-11-17 00:31:23 · 334 阅读 · 0 评论