题目大意是给出若干个面值小于300的完全平方数的硬币,求出对于给定的面值,用这些硬币组合成这一面值的方案数。
很明显的背包式递推,一种面值的方案数等于所有能够单步抓化为这种面值的状态之和。因此可以得到递推式f[i+j^2]=f[i+j^2]+f[i](1<=j^2<=300,1<=i<=300-j^2),边界条件是f[0]=1。
3068468 2008-09-13 14:13:32 Accepted 1666 FPC 00:00.00 404K IwfWcf
题目大意是给出若干个面值小于300的完全平方数的硬币,求出对于给定的面值,用这些硬币组合成这一面值的方案数。
很明显的背包式递推,一种面值的方案数等于所有能够单步抓化为这种面值的状态之和。因此可以得到递推式f[i+j^2]=f[i+j^2]+f[i](1<=j^2<=300,1<=i<=300-j^2),边界条件是f[0]=1。
3068468 2008-09-13 14:13:32 Accepted 1666 FPC 00:00.00 404K IwfWcf
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
回复删除michael kors
christian louboutin outlet
michael kors canada outlet
concords 11
louis vuitton handbags
coach outlet store online
rolex watches
coach factory outlet
gucci outlet
montblanc pens
air jordan 8
mont blanc pen
cheap toms
louis vuitton outlet stores
nike outlet store
michael kors outlet clearance
ralph lauren outlet
nike store uk
replica rolex watches
nike sb janoski
christian louboutin sale
adidas stan smith
timberlands
michael kors outlet clearance
michael kors outlet
coach factory outlet online
nike air max uk
christian louboutin outlet
michael kors outlet clearance
oakley outlet
michael kors outlet online
michael kors outlet clearance
coach factory outlet
coach outlet
jordan 3s
air jordan shoes
coach factory outlet
adidas superstar