two kinds of digit by ush

n;a;main(b){for(;!a|a&a-1?:printf("%d\n",n)<6;a&=a-1)for(a=0,b=++n;b;b/=10)a|=1<<b%10;}

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

download

return to the top page