Soroban Fixed by notogawa

main=interact$unlines.f.init
f s=(s>>"==="):div%[1,0]++drop(9*length s)(s>>"==========*="):mod%[0..4]++[s>>"==="]where f%x=[do b<-s;last$"<->":[" | "|a==f(read[b])5]|a<-x]

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

download

return to the top page