给出从第i(1<=i<=n)点到第i+1点的m条道路的带宽、价格,求流量/费用的的最大值。流量=min{所选道路带宽},费用=∑{所选带路价格}。
不难的DP。状态转移方程是f[i,min(j,b[i,k])]=min(f[i,min(j,b[i,k])],f[i-1,j]+p[i,k]);f[i,j]表示到i点流量是j的最小费用,注意筛选有效状态以及维护j的枚举范围即可。我对这题充满了怨念,建模和主要模块代码Coding都没问题,但min函数史无前例地写成了max函数,而且该死的IDE竟然RPWT一动态查错就崩溃,于是苦苦找了很久才发现这一点……
3004785 2008-07-25 17:11:44 Accepted 1409 FPC 00:00.24 608K IwfWcf
151207meiqing
回复删除oakley sunglasses wholesale
michael kors outlet clearance
ugg australia
chanel bags
michael kors outlet stores
michael kors outlet
michaek kors outlet
prada outlet
canada goose jackets
ugg clearance
ugg outlet
replica watches
louis vuitton outlet
oakley sunglasses
canada goose outlet
kate spade handbags
louis vuitton handbags
abercrombie fitch
uggs on sale
celine
adidas originals
pandora jewelry
ray ban sunglasses outlet
michael kors bag
michael kors outlet online
uggs outlet
gucci shoes
coach outlet store online
ugg boots
cheap jordans
coach outlet
coach outlet
cheap uggs
michaek kors handbags
uggs for sale
supra shoes
uggs australia
ray-ban sunglasses
toms shoes
michael kors outlet online
chenlina20160429
回复删除louis vuitton outlet
jordan 8
louboutin pas cher
adidas shoes
toms wedges
adidas running shoes
michael kors outlet
louis vuitton handbags
michael kors handbags
cheap air jordans
caoch outlet
gucci outlet
cheap oakley sunglasses
louis vuitton handbags
coach factorty outlet
michael kors outlet
coach factorty outlet
louis vuitton outlet
true religion jeans
michael kors outlet
polo ralph kids
celine handbags
ray ban outlet
gucci handbags
louis vuitton
coach factorty outlet
polo ralph lauren outlet
michael kors uk
tory burch handbags
cheap nfl jerseys
louis vuitton handbags
nike outlet store
ray ban sunglasses
nike air jordan
kd 8 shoes
ray ban sunglasses
lebron shoes
kate spade handbags
nike air max
coach outlet
as
mbt shoes men
回复删除bengals jerseys
pandora rings
ugg canada
michael kors handbags clearance
christian louboutin shoes
nfl jerseys cheap
canada goose coats
ralph lauren polo shirts
nike air max 90
201612.26chenjinyan
20180829 xiaoou
回复删除toms outlet
ugg boots clearance
michael kors handbags
true religion outlet
ralph lauren outlet
ralph lauren outlet
jordan 4
mishka snapbacks
james harden shoes
michael kors outlet online