Turing Machine by nn

for(i=0;it[i++]=readline(b=[]);)s=5
for(i=114;s>0;s=it[0].indexOf(v[s+1]))v=it[-~b[i]],b[i]=v[s-1],i+=v[s]>'<'?1:-1
print(b.join(''))

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

download

return to the top page