题目大意是给出位于一直线上的n家餐厅与原点的距离,要求在其中选k家作为供应站,输出供应所有餐厅的最短路程。
如果用f[i,j]表示在前j家餐厅设立i个供应站时,供应j家餐厅的最短路程,则很容易想到f[i,j]=min(f[i-1,k]+g[k+1,j])(k<j);g[k+1,j]表示在第k+1到第j家餐厅设立一个供应站,供应这些餐厅的最短路程。显然这一供应站应该设立在中点,因此进行这一预处理后就可以进行DP了。
1649566 2008-09-23 17:00:00 Accepted 1196 FPC 10 584 IwfWcf
qihang0922,instyler max
回复删除tory burch outlet
ralph lauren outlet
gucci borse
jordan pas cher
ugg boots
longchamp handbags
air max
mulberry handbags
timberland boots
uggs on sale
mont blanc
fitflops sale clearance
michael kors handbags
air max 90
ugg sale
louis vuitton pas cher
replica watches
burberry outlet
ugg boots clearance
ugg outlet
fake oakleys
nike tn
pandora jewelry
louboutin
christian louboutin uk
hermes uk
cheap uggs
cheap jerseys
toms shoes
kate spade handbags
gucci shoes
michael kors
nike air force 1
nike air huarache
ray ban outlet
adidas superstar
tod's shoes
q
toms outlet, http://www.tomsoutlet-stores.com/
回复删除nike roshe, http://www.nikerosherunshoes.co.uk/
prada handbags, http://www.pradahandbagsoutlet.co.uk/
soccer jerseys, http://www.cheapsoccerjersey.net/
michael kors outlet store, http://www.michaelkorsoutlet-store.us.com/
true religion jeans, http://www.truereligionjeansoutlets.us.com/
oakley sunglasses, http://www.oakleysunglasses-outlet.us.com/
nike free 5, http://www.nikefree5.us/
louis vuitton bags, http://www.louisvuittonbag.us.com/
chanel handbags, http://www.chanelhandbags-outlet.co.uk/
chanel handbags, http://www.chanelhandbags-outlet.us.com/
louis vuitton handbags, http://www.louisvuittonhandbag.us/
louis vuitton outlet, http://www.louisvuittonoutlet.in.net/
ghd hair straighteners, http://www.ghdhairstraightenerssale.co.uk/
nba jerseys, http://www.nbajerseys.us.com/
coach outlet, http://www.coachoutletstores.com.co/
true religion jeans, http://www.truereligionjeanscanada.com/
swarovski crystal, http://www.swarovskicrystals.co.uk/
mbt shoes, http://www.mbtshoesoutlet.us.com/
michael kors handbags, http://www.michaelkorshandbags.in.net/
chanel handbags, http://www.chanelhandbagsoutlet.in.net/
michael kors outlet online, http://www.michaelkorsoutletonline.in.net/
polo ralph lauren, http://www.poloralphlauren.us.org/
the north face clearance, http://www.thenorthfaceclearances.us.com/
jordan shoes, http://www.jordan-shoes.us.com/
beats by dr dre, http://www.beatsbydrdre-headphones.us.com/
the north face uk, http://www.thenorthfaces.org.uk/
1003maoqiuyun
zhengjx20160520
回复删除retro jordans 13
jordan 3 powder blue
designer handbags
nike trainers sale
hollister clearance
nike store outlet
coach outlet
cheap jordans
christian louboutin sale
michael kors outlet
kobe 8
michael kors bags
oakley outlet
michael kors handbags
oakley outlet
louis vuitton handbags
retro 11
michael kors outlet
cheap oakley sunglasses
louis vuitton outlet
kd 7 shoes
ray bans
tiffany and co
nfl jerseys
michael kors outlet
jordan retro 8
coach factory outlet online
toms wedges
ray ban sunglasses
michael kors
copy watches
louis vuitton bags
coach outlet store online clearances
cheap ray ban sunglasses
fitflop clearance
michael kors outlet
north face jackets
cheap oakleys
burberry outlet online
michael kors purses
ralph lauren polo shirts
回复删除polo ralph lauren
ugg boots
ralph lauren polo
michael kors handbags
chaussures christian louboutin
michael kors outlet online
air max 90
north face jackets
cheap ugg boots
201612.26chenjinyan
balenciaga
回复删除nike foamposite
moncler coat
kd 12
moncler jackets
golden goose outlet
retro jordans
retro jordans
kyrie 5
golden goose outlet
get redirected here luxury replica bags go to my site best replica bags pop over to this website replica designer backpacks
回复删除