排列组合递推公式以及代码
摘要:
A(n, m) = A(n - 1, m - 1) + A(n - m, m) {n在下,m在上,下同}UESTC 1721static final int MOD = 1000000007; static final int MAXN = 2005; int A[][]; void solve() { A = new int[MAXN][MAXN]; for (int i = 1; i < MAXN; i++) { A[i][1] = A[i][i] = 1; } for (int i = 3; i < MAXN; i++) { for (int j = 2; j < i; 阅读全文
posted @ 2013-02-18 21:37 Sure_Yi 阅读(963) 评论(0) 推荐(0) 编辑