摘要:
#include<iostream>#include<string.h>#define N 105using namespace std;int n, m;int c[N];int topo[N], t;int tt[N][N];void dfs( int u){ int v; c[u] = 1; for( v = 1; v <= n; v ++) if( tt[u][v] && !c[v] ) dfs( v); topo[ -- t] = u;}int main(){ int a, b, i; while( cin >>... 阅读全文
posted @ 2011-11-12 15:41
找回失去的
阅读(187)
评论(0)
推荐(0)
浙公网安备 33010602011771号