Grouping by clock

System.in.eachLine{s->(0..9).collect{-s.count("$it")}.sort().any{print(-it?:"")}println""}

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

download

return to the top page