码迷,mamicode.com
首页 >  
搜索关键字:highways    ( 182个结果
Highways
The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopia ...
分类:其他好文   时间:2017-08-06 20:40:02    阅读次数:212
C - Highways
The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopia ...
分类:其他好文   时间:2017-08-06 15:08:37    阅读次数:204
POJ 1751 Highways
Highways Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 16602 Accepted: 4864 Special Judge Description The island nation of Flatopia is pe ...
分类:其他好文   时间:2017-08-02 13:12:36    阅读次数:155
Highways POJ 2485【Prim】
Description The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. ...
分类:其他好文   时间:2017-07-16 18:20:24    阅读次数:141
POJ 2485 Highways 最小生成树 (Kruskal)
Description The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. ...
分类:其他好文   时间:2017-07-09 23:10:31    阅读次数:235
POJ2485 Highways 【MST】
Highways Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 22842 Accepted: 10525 Description The island nation of Flatopia is perfectly flat. ...
分类:其他好文   时间:2017-06-19 14:31:58    阅读次数:199
PAT 1004 To Fill or Not to Fill (25)
题目描写叙述 With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to fin ...
分类:其他好文   时间:2017-06-04 23:03:30    阅读次数:408
[POJ2485]Highways
题目大意:Flatopia岛要修路,这个岛上有n个城市,要求修完路后,任意城市都可以到达其他城市,且修的总长度最短。 解题思路:很明显裸的最小生成树,只不过是求最大的边的权值。我用的是Kruskal。 (注意:请用“C++”提交,“G++”会超时) ...
分类:其他好文   时间:2017-05-21 20:33:54    阅读次数:224
1013. Battle Over Cities (25)(连通分量个数 、 并查集)
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c ...
分类:其他好文   时间:2017-05-12 00:16:09    阅读次数:197
UVA 1393 Highways(数学思想)
题意:给你n、m(n,m<=200),问你有多少条非水平、非垂直的直线有多少条经过至少两个点 题解:我们需要枚举的是只画一条线的矩形,对于大小a*b的矩形必须保证gcd(a,b)=1才能不重复 接着对于每个矩形可以放的位置有(n-a)(m-b)个,但是如果有矩形在某个矩形的左上方就会再次重复 因此只 ...
分类:其他好文   时间:2017-04-12 21:33:52    阅读次数:153
182条   上一页 1 ... 5 6 7 8 9 ... 19 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!