Diamond Matrix by Volatility

d,i,s,p=input(),0,'',";print' '*(d-i)+s+s[-2::-1];"\x0d
exec('i+=1;s+=`i`'+p)*d+('i-=1;s=s[:-1]'+p)*d

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

download

return to the top page