摘要: #include"stdio.h"#include"string.h"const int N=105;int n,m;int indegree[N],map[N][N];int top_sort(){ int i,l,k; for(k=0;k<n;k++) { for... 阅读全文
posted @ 2013-11-18 17:52 ruo_yu 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdio.h" //二分+并查集,,想想道理何在! 2 #include "stdlib.h" 3 #include "algorithm" 4 using namespace std; 5 #define INF 0x3fffffff 6 struct node{ 7... 阅读全文
posted @ 2013-11-18 17:43 ruo_yu 阅读(183) 评论(0) 推荐(0) 编辑