for(t=p=print;r=readline(n=s='');+t&&p(n.trim()),t=r,p(s))for(j in r)s+=+j?c<r[j]?' < ':' > ':'',s+=c=r[j],n+=c<t[j]?' V':' ^'
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page