checkers pattern by 51b

-module(p).
-export([m/0]).
m()->{_,[X,Y]}=io:fread('',"~d~d"),[io:format([(N+M)rem 2+48,if M<Y->32;0<1->10end])||N<-lists:seq(0,X-1),M<-lists:seq(1,Y)].

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

download

return to the top page