l(_:s)=1+l s l _=0 main@m=getLine>>=(\(x:_:s)->putStrLn$drop 1$take 9$show$(l$filter(==x)s)/l s+10+5e-7)>>m
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page