f:=method(x,y,s,if(x<1,s println)if(y<x,f(x-1,y,s .."0"))if(y>0,f(x-1,y-1,s .."1"))) File standardInput readLine split map(asNumber)do(f(at(0),last,""))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page