摘要:
题目:http://www.spoj.pl/problems/STONE2/用生成函数的方法,其实也是dp的思想。View Code #include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int mod = 1000000007;const int N = 105;#define M(a) ((a)%mod)#define ll long longll ans, an[N], n, all;ll t1[N*N], t2[N*N], c[N*N][N]; 阅读全文
posted @ 2012-07-16 19:01 紫华弦筝 阅读(243) 评论(0) 推荐(0) 编辑