Soroban Fixed by murky-satyr

gets
10.times{|i|j= ~/$/
puts$_.gsub(/./){n=eval$&
i%9<1?'===':i==3?(j-=1)%4>0?'===':'=*=':i==(i<3?2-n/5:n%5+4)?' | ':'<->'}}

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

download

return top