n=input()+1 s=[1]+n*[0] for i in range(2*n): if i%2<1:print" ".join(map(str,s[:-1])) s=[s[j]+s[j-i%2*2+1]for j in range(n)]+[0]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page