随笔分类 - ——2. 活动网格—--拓扑排序
POJ - 2367 Genealogical tree(拓扑排序)
摘要:The system of Martians' blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather to...
阅读全文
HDU - 1285 确定比赛名次(拓扑排序多种方法)
摘要:有N个比赛队(1 #include #define MAXN 517 int G[MAXN][MAXN];//路径 int in_degree[MAXN];//入度 int ans[MAXN]; int n, m, x, y; int i, j; ...
阅读全文