input""n:for i=0to n-1for j=-n to-1?mod(i-j*2-1,n)*n+mod(i-j+n/2,n)using"###";next:?next