while 1: n=input();a=': 1'+' _'*~-n;k=1;i=n|1;j=n*2 while~-i: \x09if-j<~i:k+=1;a=a[:j]+`k`+a[j+1:] \x09i-=i/j*2;j=a.find(' _'*i)+i print`n`+a
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page