随笔分类 -  图论-拓扑排序

摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4324Triangle LOVEDescriptionRecently, scientists find that there is love between any of two people. For ... 阅读全文
posted @ 2015-09-08 21:15 GadyPu 阅读(162) 评论(0) 推荐(0)
摘要:题目连接http://poj.org/problem?id=2367Genealogical treeDescriptionThe system of Martians' blood relations is confusing enough. Actually, Martians bud when... 阅读全文
posted @ 2015-08-31 16:16 GadyPu 阅读(154) 评论(0) 推荐(0)
摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1285确定比赛名次Description有$N$个比赛队$(1 \leq N \leq 500)$,编号依次为$1,2,3,...$ $N$进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,... 阅读全文
posted @ 2015-07-12 12:59 GadyPu 阅读(149) 评论(0) 推荐(0)
摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=3342Legal or NotDescriptionACM-DIY is a large QQ group where many excellent acmers get together. It is s... 阅读全文
posted @ 2015-07-11 10:47 GadyPu 阅读(183) 评论(0) 推荐(0)
摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2094产生冠军Description有一群人,打乒乓球比赛,两两捉对撕杀,每两个人之间最多打一场比赛。球赛的规则如下:如果A打败了B,B又打败了C,而A与C之间没有进行过比赛,那么就认定,A一定能打败C。如... 阅读全文
posted @ 2015-07-10 21:20 GadyPu 阅读(190) 评论(0) 推荐(0)
摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2647RewardDescriptionDandelion's uncle is a boss of a factory. As the spring festival is coming , he wan... 阅读全文
posted @ 2015-07-10 19:19 GadyPu 阅读(183) 评论(0) 推荐(0)