摘要: 1 /**\ 2 拓扑排序:每次找到入度为0的点删掉 3 判断一个有向图中是否有环,无环的图都能进行拓扑排序 4 \**/ 5 #include <bits/stdc++.h> 6 7 using namespace std; 8 9 const int N = 1e5 + 10; 10 11 in 阅读全文
posted @ 2022-02-24 13:53 std&ice 阅读(42) 评论(0) 推荐(0) 编辑