摘要: 简单的并查集View Code 1 /* 2 并查集 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<algorithm> 8 #include<iostream> 9 #include<queue>10 //#include<map>11 #include<math.h>12 using namespace std;13 typedef long long ll;14 //typedef _ 阅读全文
posted @ 2013-03-20 20:16 xxx0624 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 栈的应用View Code 1 /* 2 栈 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<algorithm> 8 #include<iostream> 9 #include<queue>10 #include<stack>11 //#include<map>12 #include<math.h>13 using namespace std;14 typedef long lo 阅读全文
posted @ 2013-03-20 20:09 xxx0624 阅读(303) 评论(0) 推荐(0) 编辑