【BestCoder Round #25】A(拓扑排序,找环)
题意不难看出是一道简单拓扑题目,自己对于拓扑一直没能掌握。这边就不写思路了,直接上代码了。我的代码:#include#include#includeusing namespace std;bool DIS[110][110];int r[110];bool vis[110];int main(){ int n, m; while (cin >> n >> m) {
原创
2015-01-03 22:06:39 ·
825 阅读 ·
0 评论