摘要: 简单的DFS搜索,求出连通块个数 阅读全文
posted @ 2019-10-31 01:18 留幸愉 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 #define INF 0x3f3f3f3f 3 const int maxn = 2e5 + 7; 4 using namespace std; 5 int a[maxn]; 6 int n,m; 7 int main() 8 { 9 ios::sync_with_stdio(false); 10 cin.tie(0), cout.tie 阅读全文
posted @ 2019-10-31 01:08 留幸愉 阅读(168) 评论(0) 推荐(0) 编辑