t=0 System.in.eachLine{r->m=s='' 9.times{i->s+=i?c<r[i]?' < ':' > ':'' s+=c=r[i] m+=t?c<t[i]?' V':' ^':i} println t?m-~/ */+'\n'+s:s t=r}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page