码迷,mamicode.com
首页 >  
搜索关键字:constructing roads    ( 767个结果
hdoj 1025 Constructing Roads In JGShining's Kingdom 【最长递增子序列】
Constructing Roads In JGShining's Kingdom Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 16262    Accepted Submission(s): 4633 Problem...
分类:其他好文   时间:2014-10-21 17:40:09    阅读次数:171
HDU-1025 Constructing Roads In JGShining's Kingdom O(nlogn)的最长上升子序列
模板题,唯一问题是当长度为1是,road是单数,不然road是复数roads。 #include #include #include #include #include #include #include #include using namespace std; const int maxn=1021000; struct node { int r; int b...
分类:其他好文   时间:2014-10-19 17:07:26    阅读次数:206
POJ1251 Jungle Roads 【最小生成树Prim】
Jungle Roads Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 19536   Accepted: 8970 Description The Head Elder of the tropical island of Lagrishan has ...
分类:其他好文   时间:2014-10-18 12:42:48    阅读次数:198
Codeforces 191C Fools and Roads(树链剖分)
题目链接:Codeforces 191C Fools and Roads 题目大意:给定一个N节点的数,然后有M次操作,每次从u移动到v,问说每条边被移动过的次数。 解题思路:树链剖分维护边,用一个数组标记即可,不需要用线段树。 #include #include #include using namespace std; const int maxn = 1e5 + 5; ...
分类:其他好文   时间:2014-10-17 20:34:04    阅读次数:128
Codeforces 191 C Fools and Roads (树链剖分)
树链剖分...
分类:其他好文   时间:2014-10-17 18:47:44    阅读次数:214
HDU 1025 Constructing Roads In JGShining's Kingdom (DP)
Problem DescriptionJGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two parallel lines.Half of these ci...
分类:其他好文   时间:2014-10-16 21:14:33    阅读次数:282
UVA 12507 Kingdoms
D -KingdomsTime Limit:1000MSMemory Limit:0KB64bit IO Format:%lld & %lluA kingdom has n cities numbered 1 to n, and some bidirectional roads connecting...
分类:其他好文   时间:2014-10-11 12:06:15    阅读次数:237
SQL -- 判断线是否与面相交或者在其内部
SQL如下: update mapping_nj_roads set municipality='227' from mapping_geodata_boundary a where a.supportfile_code='227' and (a.boundary.STContains(mapping_nj_roads.geom)=1 or a.boundary.STIntersect...
分类:数据库   时间:2014-10-09 19:39:17    阅读次数:320
sicily 1024 邻接矩阵与深度优先搜索解题
DescriptionThere are N cities and N-1 roads in Magic-Island. You can go from one city to any other. One road only connects two cities. One day, The ki...
分类:其他好文   时间:2014-10-06 02:45:19    阅读次数:292
ASC(22)C(最短路+双连通分量找桥或拓扑排序)
Important Roads Special JudgeTime Limit: 20000/10000MS (Java/Others)Memory Limit: 128000/64000KB (Java/Others) SubmitStatisticNext Problem Problem Description       The city where Geor...
分类:其他好文   时间:2014-10-05 10:10:48    阅读次数:247
767条   上一页 1 ... 64 65 66 67 68 ... 77 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!