i;main(n,m){for(scanf("%d%d",&n,&m);i<n*m;)printf("%d%c",i/m+i++%m&1^1,~i%m?32:10);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page