摘要: dfs代码: #include<iostream>#include<Algorithm>#include<cstring>#include<cstdio>#include<cstdlib>using namespace std;int cnt,m;int head[50005];bool s[500 阅读全文
posted @ 2017-10-21 20:52 荒岛的龟 阅读(529) 评论(0) 推荐(1) 编辑
摘要: #include<iostream>#include<algorithm>#include<queue>#include<cstring>#define maxn 100006using namespace std;struct node{ int w; int to; int next;}edge 阅读全文
posted @ 2017-10-21 20:42 荒岛的龟 阅读(146) 评论(0) 推荐(0) 编辑