- 博客(5)
- 问答 (1)
- 收藏
- 关注
原创 poj1330
//当时在写这道题的时候 #include #include #include using namespace std; const int N = 10000; vector a[N]; int f[N],r[N]; void DFS(int u,int dep) { r[u] = dep; for(vector::iterator i
2014-07-25 22:41:38 548
原创 zoj1674
#include #include #include #include using namespace std; const int maxn = 1000 + 10; int layer[maxn]; int parent[maxn]; map mhash; int num = 0; void solve(int i) { string s1;
2014-07-25 22:33:15 492
原创 poj 1703 并查集
#include #include using namespace std; const int maxn = 100000 + 10; int set[maxn + maxn ];//这道题是这样的思路,如果a,b是对立帮派(龙帮,蛇帮),那么a和b + n(b的对立帮派)是同一帮派,b 和 a+n(a的对立帮派)是同一帮派 int set_find(int d) {
2014-07-24 23:00:26 550
原创 poj 1988 并查集
#include #include const int maxn = 100000 + 100; int set[maxn];//记录每个元素的栈低(代表元素)元素 int top[maxn];//记录每个元素的栈顶元素 int cnt[maxn];//j记录每个元素到栈低的元素个数 int set_find(int p)//查找元素p的栈底元素,并进行路径压缩,并更新 p
2014-07-24 22:47:38 547
空空如也
高斯滤波器空间域与频率域
2016-01-24
TA创建的收藏夹 TA关注的收藏夹
TA关注的人