【BestCoder Round #25】A(拓扑排序,找环)
题意不难看出是一道简单拓扑题目,自己对于拓扑一直没能掌握。这边就不写思路了,直接上代码了。
我的代码:
#include
#include
#include
using 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 ·
784 阅读 ·
0 评论