hdu5791Two dp hdu5781ATM Mechine 概率dp hdu5787 K-wolf Number 数位dp
http://acm.hdu.edu.cn/showproblem.php?pid=5791
很水的dp,是考虑复杂了
考虑重复的转移方程
dp【i】【j】= dp【i-1】【j】+ dp【i】【j】- dp【i-1】【j-1】
#include
using namespace std;
const int mo=1e9+7;
const int maxn=1005;
long long
原创
2017-09-08 02:21:53 ·
371 阅读 ·
0 评论