sicily 1011. Lenny's Lucky Lotto 动态规划
摘要:
//设dp[i][j]为选取的第i个数为j的方案数//dp[i][j] = sum(dp[i-1][k]), i-1 <= k <= j/2//ans = sum(dp[n][k])#include <iostream>#include <cstring>#include <cstdio>using namespace std;const int N = 15;const int M = 2005... 阅读全文
posted @ 2011-04-08 22:25 sysuwhj 阅读(651) 评论(0) 推荐(0) 编辑