摘要: 用了老办法,没啥新意,只是自己写了个sort 1: #include<iostream> 2: #include<string.h> 3: using namespace std; 4: int m,n; 5: const int maxn=100001; 6: int a[maxn],pos[maxn]; ... 阅读全文
posted @ 2012-07-07 21:06 NoRush 阅读(339) 评论(0) 推荐(0)
摘要: 就机会复习一下并查集… 1: #include<iostream> 2: #include<string.h> 3: using namespace std; 4: const int maxn=1001; 5: int f[maxn]; 6: int n,m,tot=0; 7: 8: in... 阅读全文
posted @ 2012-07-07 20:42 NoRush 阅读(229) 评论(0) 推荐(0)
摘要: 用了个很笨的办法~ 同时学会了使用string.h里的memset 1: #include<iostream> 2: #include<string.h> 3: using namespace std; 4: const int maxv=2000000; 5: int v[maxv]={0}; 6: boo... 阅读全文
posted @ 2012-07-07 20:20 NoRush 阅读(1208) 评论(0) 推荐(0)