ON bit fixed by pooq

f=function(x,y,s){if(!x)cat(s,"
",sep="");if(y<x)f(x-1,y,c(s,0));if(y)f(x-1,y-1,c(s,1))}
a=scan("stdin")
f(a[1],a[2],c())

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

download

return to the top page