随笔分类 -  拓扑排序应用和关键路径

摘要:Problem DescriptionACM-DIY is a large QQ group where many excellent acmers get together. It is so harmonious that just like a big family. Every day,ma... 阅读全文
posted @ 2014-07-17 20:03 段少 阅读(139) 评论(0) 推荐(0) 编辑
摘要:Problem Description有N个比赛队(1#include#includeint indegree[505],map[505][505];//indegree记录每个节点的入度和。map记录那些边是相关联的int tp[505],k;//记录拓扑序列。void topsort(int n... 阅读全文
posted @ 2014-07-17 17:13 段少 阅读(191) 评论(0) 推荐(0) 编辑