题目大意是给出一个矩阵,求出矩阵中某些指定子矩阵的所有元素的平方和。
先利用递推预处理出所有以(1,1)为左上角的矩阵的所有元素的平方和。用f[i,j]表示左上角为(1,1),右下角为(i,j)的矩阵的所有元素的平方和,则f[i,j]=f[i-1,j]+sum[j];sum[j]表示第i行前j个元素的平方和。则所求子矩阵(r1,c1,r2,c2)的所有元素平方和即为f[r2,c2]-f[r1-1,c2]-f[r2,c1-1]+f[r1-1,c1-1]。
1653473 2008-10-01 23:50:40 Accepted 1636 FPC 140 1092 IwfWcf
roshe run, http://www.rosherunshoessale.com/
回复删除tory burch outlet, http://www.toryburchoutletonline.in.net/
ralph lauren uk, http://www.ralphlauren-outletonline.co.uk/
michael kors outlet, http://www.michaelkorsoutlet.org.uk/
ralph lauren outlet, http://www.ralphlaurenoutlet.in.net/
asics, http://www.asicsisrael.com/
nike free, http://www.nikefreerunning.org/
coach handbags, http://www.coachhandbagsoutletonline.us.com/
christian louboutin uk, http://www.christianlouboutinoutlet.org.uk/
replica watches, http://www.replicawatchesforsale.us.com/
hogan, http://www.scarpehogan-outlet.it/
stuart weitzman boots, http://www.stuartweitzmanoutlet.us/
basketball shoes, http://www.basketballshoes.us.com/
ray ban sunglasses, http://www.raybansunglass.us.com/
nike huarache, http://www.nikeairhuarache.org.uk/
prada outlet, http://www.pradaoutlet.us/
michael kors handbags, http://www.michaelkorshandbag.co.uk/
air jordan 13, http://www.airjordan13s.com/
air max 90, http://www.airmax90.us.com/
mulberry outlet, http://www.mulberryoutlet.com.co/
hollister, http://www.hollistercanada.com/
toms shoes, http://www.toms.us.com/
louis vuitton outlet, http://www.louisvuittonoutletstore.name/
true religion jeans, http://www.truereligionjean.in.net/
ugg boots, http://www.uggboot.com.co/
michael kors outlet, http://michaelkors.outletonlinestores.us.com/
nike air max uk, http://www.nikeairmaxshoes.org.uk/
air jordan 11, http://www.airjordan11.net/
1003maoqiuyun
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
miami heat jersey
回复删除fitflops sale
christian louboutin outlet
ralph lauren uk
ralph lauren polo
ferragamo shoes
packers jerseys
mlb jerseys
raiders jerseys
回复删除miami heat
oakland raiders jerseys
nike soccer shoes
bengals jersey
boston celtics jersey