数据结构
文章平均质量分 77
元素不会背元素周期表
U don't have to say I love U to say I love you.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
拓扑排序模板
#include #include #include #include using namespace std; #define MAX 100000 int book[MAX],n,indeg[MAX],mp[MAX],k; vector G[MAX]; void bfs() { queueq; for(int i=1; i<=n; i++) if(!inde原创 2017-07-22 20:33:42 · 192 阅读 · 0 评论 -
POJ-1724 ROAD
N cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated with it : the road length and the toll that needs to be paid for the road (expressed in th...原创 2017-07-13 15:44:18 · 302 阅读 · 0 评论 -
Expedition POJ - 2431
A group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately managed to run over a rock and puncture the truck's fuel tank. The原创 2017-09-07 19:46:21 · 384 阅读 · 0 评论 -
确定比赛名次 HDU - 1285
有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知道每场比赛的结果,即P1赢P2,用P1,P2表示,排名时P1在P2之前。现在请你编程序确定排名。 Input 输入有若干组,每组中的第一行为二个数N(1<=N<=500),M;其中N表示队伍的个数,M表示接原创 2017-07-24 18:41:50 · 322 阅读 · 0 评论
分享