Knight move sorted by kotatsugame

char*a=" CDEGFBEIGAEIFBEG",*p,s[]=" ";main(f){for(;gets(s+1);puts(p))for(p=a,f=0;*p;~-(s[1]+=*++p-69)/8%6|~-(s[2]+=*++p-69)/8%6||printf(s+!f++));}

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