Go capture by nn(non embed)

function f(i){p=x.charCodeAt()+i
return[String.fromCharCode(p-73?p:p+i),p<85&&y]}for(e=v=[];l=readline();e+=l,v=v.concat([f(1),f(-1),[x,++y],[x,y-2]]))[,x,y]=/(.)(.*)/(l)
for([,[x,y]]in v.sort(function([a,b],[c,d]){return(a>c)-(a<c)||b-d}))e+=!y||e.indexOf(z=x+y)+1||print(z)+z

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

download

return to the top page