for(;[m,n]=readline(a=[i=o=0]).split(' ');print(o))for(;i++<m*n;i%n?a.push(v):o+=o?' '+v:v)v=i>m?a[i-m]:i
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page