ON bit fixed by rst76

main=interact$unlines.f.map read.words
f[0,0]=[""]
f[a,b]=[x:y|a*b>=b*b,x<-"01",y<-f[a-1,b-read[x]]]

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

download

return to the top page