n,m,i;main(x){for(scanf("%d",&n),m=n*n,x=n/2;m/++i;x+=i%n?~x%n?n-~n:n+1:n)printf("%3d%c",m-x%m,i%n?32:10);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page