Sign of inequality by nn

a=System.in.readLines()
9.times{l=a[it]
s=t=''
9.times{i->s+='   '+'^V'[a[it-1][i]<(c=l[i])?0:1]
t+=i?d<c?' < ':' > ':t
t+=d=c}println it?s+'\n'+t-'   ':t}

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

download

return to the top page