Grouping by jamesaxl

while 1:\x0d
 s=[];l=raw_input().split();d=dict((i,l.count(i)) for i in l)\x0d
 for i in d:s.append(d[i])\x0d
 s.sort();s.reverse();print ''.join(str(x) for x in s)

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

download

return to the top page