E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
railway
递推DP URAL 1031
Railway
Tickets
题目传送门 1 /* 2 简单递推DP:读题烦!在区间内的都更新一遍,dp[]初始化INF 3 注意:s1与s2大小不一定,坑! 4 详细解释:http://blog.csdn.net/kk303/article/details/6847948 5 */ 6 #include <cstdio> 7 #include <iostream>
·
2015-11-11 12:17
dp
SGU 313 Circular
Railway
题目链接:http://acm.sgu.ru/problem.php?contest=0&problem=313 题意:在一个长为L的环形跑道上,有n个X,n个O,他们每个都位于跑道的某个整数位置上。给出每个X和O的坐标,找出一种配对方案(一个X对一个O),使得每个X到自己的O那里所经过的长度之和最短。输出每个X配对的是第几个O。 思路:如果不是一个环而是一个直线的话,贪心,直接O(n
·
2015-11-11 09:27
CI
poj 1363 Rails in PopPush City &&【求堆栈中合法出栈顺序次数】
问题 B: Rails 时间限制: 1 Sec 内存限制: 64 MB 提交: 14 解决: 4 [提交][状态][讨论版] 题目描述 There is a famous
railway
·
2015-11-11 06:43
Rails
Railway
Tickets(spfa)
题目链接 不知为何会在dp里呢。。。INF取小了,2Y。 1 #include <cstring> 2 #include <cstdio> 3 #include <string> 4 #include <iostream> 5 #include <algorithm> 6 #include <vector
·
2015-11-11 04:10
SPFA
SGU 252
Railway
Communication(KM)
题目链接:http://acm.sgu.ru/problem.php?contest=0&problem=252 题意:一个有向图。选择最少的路径覆盖所有点。在路径最少的情况下,使得所有路径经过的边的权值之和最小。 思路:没有权值的话就是一个最小路径覆盖。将每个点拆成两个点放在左右两个集合里,求最大匹配。然后怎么构造出最小路径呢?从右边没有被匹配的点开始沿着自己的匹配向下同时将与自己有
·
2015-11-11 03:53
com
poj 1363 Rails (【栈的应用】 刘汝佳的写法 *学习)
Limit: 10000K Total Submissions: 25964 Accepted: 10199 Description There is a famous
railway
·
2015-11-11 00:57
Rails
Handan -- City of Developing Industries
The city of Handan is 448 kilometers south of Beijing on the Beijing-Guangzhou
Railway
Line in southern
·
2015-11-09 14:23
ping
HDU 2828 Buy Tickets
4000MS Memory Limit: 65536K Total Submissions: 7553 Accepted: 3599 Description
Railway
·
2015-11-07 15:40
HDU
metro,subway,tube这三个单词如何区分?
实际上,在英语国家甚至在其他欧美国家,人们对于他们的区别很清楚,metro作为地铁是一种口语化的说法,其完整的表达是metropolitan
railway
,从字面上看就是城市里的铁路。
·
2015-11-07 13:16
metro
POJ 1363 Rails
Limit: 10000K Total Submissions: 18531 Accepted: 7391 Description There is a famous
railway
·
2015-11-07 10:07
Rails
Buy Tickets
Description
Railway
tickets were difficult to buy around the Lunar New Year in China, so we must get
·
2015-11-07 10:07
c
URAL1031——DP——
Railway
Tickets
Description The
railway
line “Yekaterinburg-Sverdlovsk” with several stations has been built.
·
2015-11-03 22:14
dp
小麦丰收的季节,我的北方,我的家
当然,我们也不能怪我们的Trains &
Railway
Dept了,因为确实太远了,2000KM呀,你想把,平
·
2015-11-02 19:52
Expo 2010 Shanghai
Shanghai
railway
police,Crackdown on Spring Festival transport touts | VisitCHN Shanghai’s toll booths
·
2015-11-02 19:20
exp
299 Train Swapping(列车交换)
Train Swapping At an old
railway
station, you may still encounter one of the
·
2015-11-02 12:43
ping
UVA 299 (13.07.30)
Train Swapping At an old
railway
station, you may still encounter one of
·
2015-11-02 10:36
uva
POJ 2828 Buy Tickets (线段树)
Memory Limit: 65536K Total Submissions: 9712 Accepted: 4679 Description
Railway
·
2015-11-01 12:26
poj
POJ 1363
Limit: 10000K Total Submissions: 18846 Accepted: 7515 Description There is a famous
railway
·
2015-11-01 08:16
poj
POJ2828Buy Tickets
Description
Railway
tickets were difficult to buy around the Lunar New Year in China, so we must get
·
2015-10-31 16:12
poj
hdu 3394
Railway
双连通分量 题意:给一个无向图。如果至少有两个环共用了一些边,那么这些边被认为是“冲突边”。如果一些边不在任何一个环中,这些边被认为是“多余边”。你要找出这个图中有多少“多余边”和“冲突边”然后输出条数。另外这图不一定是连通的 1.“多余边”不在任何一个环中,那么多余边一定是桥,所以统计这个无向图中有多少桥即可 2.“冲突边”有多少,这个有点费劲,但是不难想到。如果一个环比较
·
2015-10-31 14:04
HDU
BZOJ4158 : [POI2007]
Railway
论文题。 随便取个关键点,求出最短路树。 求出所有关键点组成的虚树,将两端都在虚树上的边保留。 对剩下的边求出最小生成树即可得到一组可行解。 #include<cstdio> #include<algorithm> const int N=5010,M=500010,inf=~0U>>1; int n,m,p,i,x,f[N],i
·
2015-10-31 10:17
2007
说说12306.cn铁路订票网站
1,What is key point of online
railway
tickets booking system. 铁路订票网站挂掉的最基本原因是什么呢?技术不行,人们老是刷屏。
·
2015-10-31 10:09
12306
POJ-2355
Railway
tickets DP优化
题目链接:http://poj.org/problem?id=2355 简单的DP,转移方程:f[i][j]=Min { f[i][k] + C(n) },注意到f[i][j]是单调递增的,用二分搜索优化即可。注意到此题有个trick,那就是s>e!!! 1 //STATUS:C++_AC_16MS_252KB 2 #include<stdio.h> 3
·
2015-10-31 10:55
poj
the
railway
problem(the example of stack)
this problem is a very classic problem which can use stack to solve. the problem can be searched through many source site. #include<cstdio> #include<stack>//表明要调用关于栈的文件吧; u
·
2015-10-31 10:22
example
线段树专题(更新中。。。)
Limit: 65536K Total Submissions: 11102 Accepted: 5417 Description
Railway
·
2015-10-31 09:32
线段树
URAL 1031
Railway
Tickets
URAL_1031 dp的方程还是很好写的,但如果用裸的O(N^2)的dp的话应该会超时(不过后来翻解题报告的时候有人说O(N^2)也可以过),于是要优化dp的过程。 既然维数已经是一维了,不妨去着眼优化决策的过程,于是猜想到可能费用随着距离的增加是单调递增的(不过即便不是单调递增的,根据dp的方程我们也依然可以用单调
·
2015-10-30 13:00
wa
POJ1363--Rails(栈)
10000K Total Submissions: 27593 Accepted: 10745 Description There is a famous
railway
·
2015-10-28 08:32
Rails
HDU 3394
Railway
Railway
Time Limit: 1000ms Memory Limit: 32768KB This problem will be judged on HDU.
·
2015-10-28 08:09
HDU
POJ 2355
Railway
tickets
Railway
tickets Time Limit: 1000MS Memory Limit: 65536K Total Submissions:
·
2015-10-27 12:26
poj
POJ 1363 Rails
10000K Total Submissions: 21728 Accepted: 8703 Description There is a famous
railway
·
2015-10-27 11:05
Rails
poj 2828 buy Tickets 用线段树模拟带插入的队列
pid=2795 Description
Railway
tickets were difficult to buy aro
·
2015-10-23 09:10
poj
Ural_1031.
Railway
Ticket (DP)
/*思路:定义dp[i]表示到达第i站的最小花费。所以 dp[i] = min(dp[i-1] + Cx, dp[i-1] + Cx, dp[i-3] + Cx...(直到i 和 (i-x) 两站的距离大于L3);*//*My Code:*/#include <iostream>#include <cstdio>#include <cstring>using
·
2015-10-21 11:21
dp
hdu 3394
railway
(BCC缩点)
题目大意:无向简单图求桥个数以及冲突边条数。所谓冲突边是指该边同时在2个以及2个以上的环上。桥的个数比较容易计算。根据low[v]>dfn[u]判断即可。关键是冲突边如何统计?先对原图进行缩点。容易发现只要一个BCC中存在两个环,那么该BCC中所有边均为冲突边。此时应有:该BCC中的边条数>BCC中的顶点个数。#include #include #include #include #include
u014679804
·
2015-06-29 13:00
POJ2355——
Railway
tickets
RailwayticketsTimeLimit:1000MS MemoryLimit:65536KTotalSubmissions:2710 Accepted:962DescriptionTherailwayline"Ekaterinburg-Sverdlovsk"withseveralstationshasbeenbuilt.Thisrailwaylinecanberepresentedasal
Guard_Mine
·
2014-12-03 20:00
dp
Minimum Number of Platforms Required for a
Railway
/Bus Station
转自出处:http://www.geeksforgeeks.org/minimum-number-platforms-required-railwaybus-station/MinimumNumberofPlatformsRequiredforaRailway/BusStationGivenarrivalanddeparturetimesofalltrainsthatreacharailwayst
martin_liang
·
2014-11-24 20:00
Railway
Communication (最小费用最大流)
252.RailwayCommunicationtimelimitpertest:0.25sec.memorylimitpertest:65536KBinput:standardoutput:standardThereareNtownsinthecountry,connectedwithMrailroads.Allrailroadsareone-way,therailroadsystemisorg
Wiking__acm
·
2014-10-17 14:00
【SGU】252
Railway
Communication 最小权路径覆盖
传送门:【SGU】252RailwayCommunication题目分析:源点向所有点建边(s,i,1,0),所有点向汇点建边(i+n,t,1,0),所有边建边(u,v+n,1,w),跑一遍最小费用最大流即可。代码如下:#include #include #include #include usingnamespacestd; typedeflonglongLL; #defineREP(i,a
u013368721
·
2014-09-15 13:00
sgu
【HDU】3394
Railway
点双连通求块
RailwayTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):1046 AcceptedSubmission(s):398ProblemDescriptionTherearesomelocationsinapark,andsomeofthemarecon
u013368721
·
2014-07-15 20:00
HDU
HDU 3394
Railway
(点双连通分量+桥)
HDU3394
Railway
(点双连通分量+桥)http://acm.hdu.edu.cn/showproblem.php?
u013480600
·
2014-06-17 15:00
ACM
HDOJ 3394
Railway
tarjan缩块,比较块中点和边的数量关系。。。RailwayTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):808 AcceptedSubmission(s):332ProblemDescriptionTherearesomelocationsinap
u012797220
·
2014-04-10 00:00
UVa 10263
Railway
(点到线段的最短距离)
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1204/*0.016s*/ #include usingnamespacestd; doubleeps=1e-10; structP { doublex,y; P(doublex=
synapse7
·
2014-02-17 10:00
C++
ACM
uva
计算几何
如何让Java以光的速度跨线程通信?
一个比Disruptor吞吐量等性能指标更好的框架,使用
Railway
算法,将线程之间的消费发送参考现实生活中火车在站点之间搬运货物。
wbj0110
·
2013-12-31 14:00
线程
算法
阻塞
如何让Java以光的速度跨线程通信?
阅读更多一个比Disruptor吞吐量等性能指标更好的框架,使用
Railway
算法,将线程之间的消费发送参考现实生活中火车在站点之间搬运货物。
wbj0110
·
2013-12-31 14:00
线程
阻塞
算法
如何让Java以光的速度跨线程通信?
一个比Disruptor吞吐量等性能指标更好的框架,使用
Railway
算法,将线程之间的消费发送参考现实生活中火车在站点之间搬运货物。
wbj0110
·
2013-12-31 14:00
线程
算法
阻塞
如何让Java以光的速度跨线程通信?
一个比Disruptor吞吐量等性能指标更好的框架,使用
Railway
算法,将线程之间的消费发送参考现实生活中火车在站点之间搬运货物。
wbj0110
·
2013-12-31 14:00
算法
线程
阻塞
如何让Java以光的速度跨线程通信?
阅读更多一个比Disruptor吞吐量等性能指标更好的框架,使用
Railway
算法,将线程之间的消费发送参考现实生活中火车在站点之间搬运货物。
wbj0110
·
2013-12-31 14:00
线程
阻塞
算法
Understanding Big Data – Analytics for Enterprise Class Hadoop and Streaming Data
On a
railway
car,these sensors track such things as the conditions experien
thecloud
·
2013-07-19 08:00
analytics
POJ 2355
Railway
tickets
题意:在一条铁路上有n个站点,要从a到b。火车票有3种,距离 #include #include usingnamespacestd; intdp[10005],ds[10005]; intmain() { intc[4],d[4]; while(scanf("%d",&d[0])!=EOF) { for(inti=1;ib)swap(a,b); dp[a]=0; for(inti=a;i<=b;
tmeteorj
·
2013-03-11 18:00
UESTC Training for Graph Theory——A、
Railway
RailwayTimeLimit: 3000ms MemoryLimit: 65535kB Solved: 54 Tried: 399DescriptionTherearesomelocationsinapark,andsomeofthemareconnectedbyroads.Theparkmangerneedstobuildsomerailwaysalongtheroads,andhewoul
zhjchengfeng5
·
2012-06-03 21:00
HDU_3394
Railway
无向图求块
http://acm.hdu.edu.cn/showproblem.php?pid=3394题意:给定一个有N个点,M条边的无向图,求有多少条边没有在环内,有多少条边在至少2个环内。思路:双连通求块,对于每个块,分别求出顶点数,记为a,和边数,记为b,当ab的时候,这时候连通分量是一棵树,(其实只有两个顶点的时候才可能出现这种情况),此时的边都是没有构成环的边。反思:一开始错误地以为可以对图进行缩
ivan_zjj
·
2012-05-03 17:00
上一页
1
2
3
4
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他