val a=io.Source.stdin.mkString.toLowerCase.replaceAll("[^a-z ]","")split" +" for(s<-a.distinct.sorted)println(a.count(s==)+" "+s)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page