hdu5222 拓扑+并查集

http://acm.hdu.edu.cn/showproblem.php?pid=5222 Problem Description Miceren likes exploration and he found a huge labyrinth underground!  T...

2015-05-09 21:52:08

阅读数 867

评论数 0

拓扑排序模板

#include #include #include #include #include using namespace std; const int maxn=30; int head[maxn],ip,indegree[maxn]; int n,m,seq[maxn]; stru...

2015-01-25 19:55:25

阅读数 2893

评论数 1

poj1094 拓扑排序

http://poj.org/problem?id=1094 Description An ascending sorted sequence of distinct values is one in which some form of a less-than operator is...

2015-01-25 19:27:23

阅读数 919

评论数 0

UVALive 4255 拓扑排序

http://vjudge.net/contest/view.action?cid=48251#problem/B

2014-06-27 18:51:23

阅读数 751

评论数 0

拓扑排序

Description The system of Martians' blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather ...

2014-04-28 21:32:51

阅读数 889

评论数 0

hdu 2467 拓扑排序之反向建图

http://acm.hdu.edu.cn/showproblem.php?pid=2647 Problem Description Dandelion's uncle is a boss of a factory. As the spring festival is coming...

2014-04-23 16:46:42

阅读数 1222

评论数 0

hdu 1285 拓扑排序

http://acm.hdu.edu.cn/showproblem.php?pid=1285 Problem Description 有N个比赛队(1   Input 输入有若干组,每组中的第一行为二个数N(1   Output ...

2014-04-23 07:11:02

阅读数 620

评论数 0

hdu 2094 图的拓扑排序

http://acm.hdu.edu.cn/showproblem.php?pid=2094 Problem Description 有一群人,打乒乓球比赛,两两捉对撕杀,每两个人之间最多打一场比赛。 球赛的规则如下: 如果A打败了B,B又打败了C,而A与C之间没有进行过比赛,...

2014-04-22 09:58:42

阅读数 605

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭