n;main(j,i){for(n=j+=atoi(gets(i));j++<n*n;putchar(j%n?i?32:116:10))for(i=n;j%n%i+j/n%i--;);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page