拓扑排序
下饭厨子
这个作者很懒,什么都没留下…
展开
-
HDU 4857逃生
逃生Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription糟糕的事情发生啦,现在大家都忙着逃命。但是逃命的通道很窄,大家只能排成一行。 现在有n个人,从1标号到n。同时有一些奇怪的约束条件,每个都形如:a必须在b之前。 同时,社会是不平原创 2016-08-05 19:42:32 · 800 阅读 · 0 评论 -
HDU 2647 Reward
RewardTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescriptionDandelion's uncle is a boss of a factory. As the spring festival is coming , he wants to distri原创 2016-08-05 19:44:34 · 275 阅读 · 0 评论 -
HDU 1285 确定比赛名次
确定比赛名次Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知原创 2016-08-05 19:47:58 · 332 阅读 · 0 评论 -
POJ 2367Genealogical tree
Genealogical treeTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluDescriptionThe system of Martians' blood relations is confusing enough. Actually, Martians bu原创 2016-08-05 21:16:12 · 210 阅读 · 0 评论