checkers pattern by 51b

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

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

download

return to the top page