duganlx
duganlx
全部文章
分类
8051单片机(1)
Android(4)
dsp(4)
linux(6)
Qt(2)
stc(1)
未归档(7)
算法相关(58)
归档
标签
去牛客网
登录
/
注册
duganlx的博客
keep going
全部文章
(共83篇)
最短路径算法--MPI Maelstrom
MPI Maelstrom BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a h...
2019-12-20
0
543
并查集--畅通工程
畅通工程 某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input 测试输入包含若干测试用例。每个测试用例的...
2019-12-20
0
558
拓扑排序--Harry and Magical Computer
Harry and Magical Computer In reward of being yearly outstanding magic student, Harry gets a magical computer. When the computer begins to deal with ...
2019-12-20
0
436
并查集--小希的迷宫
小希的迷宫 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提...
2019-12-20
0
757
并查集--More is better
More is better Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will be. ...
2019-12-20
0
620
并查集--How Many Tables
How Many Tables Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at le...
2019-12-20
0
455
拓扑排序--Legal or Not
Legal or Not 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 &q...
2019-12-20
0
414
拓扑排序--确定比赛名次
确定比赛名次 有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知道每场比赛的结果,即P1赢P2,用P1,P2表示,排名时P1在P2之前。现在请你编程序...
2019-12-20
0
1502
拓扑排序--产生冠军
产生冠军 有一群人,打乒乓球比赛,两两捉对撕杀,每两个人之间最多打一场比赛。 球赛的规则如下: 如果A打败了B,B又打败了C,而A与C之间没有进行过比赛,那么就认定,A一定能打败C。 如果A打败了B,B又打败了C,而且,C又打败了A,那么A、B、C三者都不可能成为冠军。 根据这个规则,无需...
2019-12-20
0
549
拓扑排序--Triangle LOVE
Triangle LOVE Recently, scientists find that there is love between any of two people. For example, between A and B, if A don’t love B, then B must lo...
2019-12-20
0
383
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页