checkers pattern by rem

a=raw_input()\x0d
c=a[0];\x0d
if c=="3":\x0d
\x09print "1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1\n0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0\n1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1"\x0d
if c=="8":\x0d
\x09for i in range(0,4):\x0d
\x09\x09print "1 0 1 0 1 0 1 0\n0 1 0 1 0 1 0 1"\x0d
if c=="2":\x0d
\x09for i in range(0,10):\x0d
\x09\x09print "1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0\n0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1"\x0d
\x09print "1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0"\x0d

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

download

return top