摘要: 1 #include<iostream> 2 #include<vector> 3 using namespace std; 4 //n-节点数 5 //m-边的数 6 //给一幅图,判断是否存在环 7 int find_root(int x, vector<int>&parent) { 8 if 阅读全文
posted @ 2020-09-19 15:15 人间有味_是清欢 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 using namespace std; 3 //n-节点数 4 //m-边的数 5 //p-测试数 6 //给一幅图,判断两个点之间是否存在路径 7 8 int root[10001], n, m, p; 9 int find(int x) { 10 阅读全文
posted @ 2020-09-19 14:49 人间有味_是清欢 阅读(279) 评论(0) 推荐(0) 编辑