for(g=n=readline(i=-1);++i>>n?print('Gray code n='+g):g+='\n';)for(j=n;j--;)g+=-(i>>j)>>1&1
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page