Back to task

134 symbols python3
Sun Feb 22 15:46:12 2015 z423x5c6
import sys,collections as c
a=c.Counter()
for i in sys.stdin:
 b=i.split()
 a[b[0]]+=int(b[1])
for i in sorted(a.keys()):print(i,a[i])


Leave a comment

Parsed as Markdown

Login to leave a comment