m@main=getLine>>=print.foldr1(#).map read.words>>m 0#_=0 n#b=10*div n b#b+mod n b
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page