ON bit fixed by TokusiN

long long i,j;main(s){scanf("%d%d",&s,&i);for(i=(1<<i)-1;i>>s<1;i+=j+(i+j&~i)/j/2-1){for(j=s;j--;)putchar(48^i>>j&1);puts("");j=i&-i;}}

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

download

return to the top page