s(d,c)=r=1(r,c)=1c-1rc(drc-drc-12),