数位dp
0x3f3f3f3f
这个作者很懒,什么都没留下…
展开
-
HDU 2089 —— 不要62 [入门题]
http://acm.hdu.edu.cn/showproblem.php?pid=2089 #include #include int n, m; int dp[15][15]; int num[15]; void init() { dp[0][0] = 1; for(int i = 1;i<=7;i++) { for(int j = 0;j<=9;j++) {原创 2015-12-12 13:03:44 · 326 阅读 · 0 评论 -
UESTC 250 —— windy数 [入门题]
http://acm.uestc.edu.cn/#/problem/show/250 #include #include #include #include #include using namespace std; int a, b; int dp[11][11]; int digit[11]; void init() { memset(dp, 0, sizeof dp); f原创 2015-12-12 13:07:57 · 484 阅读 · 0 评论