拓扑排序
文章平均质量分 75
Mason_xm
这个作者很懒,什么都没留下…
展开
-
确定比赛名次 (模板题)
HDU - 1285 有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知道每场比赛的结果,即P1赢P2,用P1,P2表示,排名时P1在P2之前。现在请你编程序确定排名。 Input 输入有若干组,每组中的第一行为二个数N(1<=N<...原创 2018-09-04 15:54:40 · 800 阅读 · 0 评论 -
Genealogical tree
POJ - 2367 The system of Martians' blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather together in different groups, so that a Martian can hav...原创 2018-09-03 22:13:38 · 110 阅读 · 0 评论 -
Ordering Tasks
UVA - 10305 题目: John has n tasks to do. Unfortunately, the tasks are not independent and the execution of one task is only possible if other tasks have already been executed. Input The input wil...原创 2018-09-03 22:13:26 · 197 阅读 · 0 评论 -
Legal or Not
HDU - 3342 ACM-DIY is a large QQ group where many excellent acmers get together. It is so harmonious that just like a big family. Every day,many "holy cows" like HH, hh, AC, ZT, lcc, BF, Qinz and...原创 2018-09-03 22:13:01 · 156 阅读 · 0 评论