用f[i,j]表示第i秒传到第j个人的方案数,递推式是f[i,j]=f[i-1,j-1]+f[i-1,j+1](1<=i<=m,1<=j<=n),注意处理一下边界即可,初始化f[0,1]=1。由于f[i]只与f[i-1]有关,所以可以用滚动数组将空间复杂度降一维。
R1123595 Accepted 100 From IwfWcf- P1485 FPC Vijos Dolphin 2009-1-26 11:27:14
用f[i,j]表示第i秒传到第j个人的方案数,递推式是f[i,j]=f[i-1,j-1]+f[i-1,j+1](1<=i<=m,1<=j<=n),注意处理一下边界即可,初始化f[0,1]=1。由于f[i]只与f[i-1]有关,所以可以用滚动数组将空间复杂度降一维。
R1123595 Accepted 100 From IwfWcf- P1485 FPC Vijos Dolphin 2009-1-26 11:27:14
abercrombie and fitch, http://www.abercrombie-fitch.us.com/
回复删除cheap jordans, http://www.cheapjordanshoes.in.net/
cheap wedding dresses, http://www.cheap-weddingdresses.net/
oakley sunglasses, http://www.oakleysunglassescanada.com/
nike mercurial, http://www.nikemercurial.org/
michael kors outlet, http://www.michaelkorsoutletonlinstore.us.com/
ray ban sunglasses, http://www.raybansunglassesonline.us.com/
prada shoes, http://www.pradashoes.us/
moncler coats, http://www.moncler.us.com/
oakley sunglasses, http://www.wholesaleoakleysunglasses.us.com/
lacoste polo shirts, http://www.lacostepoloshirts.cc/
cheap oakley sunglasses, http://www.cheapoakleysunglassess.us.com/
adidas outlet store, http://www.adidasoutletstore.us.com/
north face outlet, http://www.thenorthface.me/
gucci, http://www.borseguccioutlet.it/
ugg outlet, http://www.uggsoutlet.us.org/
mulberry outlet, http://mulberryoutlet.outlet-store.co.uk/
ray ban sunglasses, http://www.rayban-sunglassess.us.com/
canada goose outlet, http://www.canadagoose.us.org/
futbol baratas, http://www.futbol-baratas.com/
kobe bryant shoes, http://www.kobebryantshoes.in.net/
cheap mlb jerseys, http://www.cheapmlbjerseys.net/
timberland boots, http://www.timberlandboots.name/
cheap nfl jerseys, http://www.cheapnfljerseys.org/
longchamp handbags, http://www.longchamphandbag.us.com/
michael kors outlet, http://www.michaelkorsoutletcanada.in.net/
montblanc pens, http://www.montblanc-pens.com.co/
coach outlet store, http://www.coach-outlet-store.us.com/
1003maoqiuyun
air max 95
回复删除balenciaga shoes
michael kors handbags
balenciaga speed
kyrie 6
kobe basketball shoes
nike air max 95
supreme new york
yeezy boost
supreme clothing
over at this website Louis Vuitton replica Bags click to investigate replica bags buy online check this site out replica bags buy online
回复删除recommended you read Homepage my site click over here click this you can check here
回复删除