x=1;main(y,n){for(n=5-n%3*2;x<=n;printf(--y<=x-n?y=++x,"%d\n":"%d ",y>0?y:2-y));}

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

download

return to the top page