straight line floodfill SIMPLIFIED by I., S.

wd($$'.'(;M#~3 :'(>M)+./@e."1,0 _1&{@>y#M'^:_('.'i.~,T)e.&>M=:(<;._1&(,@,|:)i.@$)'#'=T)},)T=:];._1(,stdin)LF

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

download

return to the top page