ll@H,@W,@A[H][W],x=0;rep(i,H){rep(j,W)x>?=sum[k,0,W](A[i][k])+sum[k,0,H](A[k][j])+-A[i][j];}rep(i,H){rep(j,i+1,H)x>?=sum[k,0,W](A[i][k])+sum[k,0,W](A[j][k]);}rep(i,W){rep(j,i+1,W)x>?=sum[k,0,H](A[k][i])+sum[k,0,H](A[k][j]);}wt(x);