hdu-5977 Garden of Eden(树分治)
参考http://www.cnblogs.com/zhangchengc919/p/6042601.html
涉及高维前缀和+#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int maxn=5e4+5;
int n,k,fk,a[maxn],p[13];
int siz[maxn],son[max
原创
2017-10-21 22:07:03 ·
323 阅读 ·
0 评论