Knight move sorted by masakt

a,b,c,j;main(i){for(;i=~scanf("%c%c\n",&a,&b);c=!puts(""))for(;++i<3;)for(j=-3;++j<3;)(i+j)%2*i*j&&96<a+i&a+i<105&48<b+j&b+j<57&&printf(!c--+" %c%c",a+i,b+j);}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page