while 1:n=int(1+2*input());i=0;exec"n-=1;i+=n>0;print'0 '*i+`i*n`+' 0'*~-n;"*n
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page