f(a,c,b,d){for(d=b?0:printf("0%d\n",a);d++<"\x09\x02\x09\x04\x09\x05\x09\x05\x09"[c];)c-5|a%50<24&&f(a*10+d,c+1,b^1<<d);}main(){f(0.,1022);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page