fork(2) download
  1. def main():
  2. entery = 0
  3. kody = {}
  4. while True:
  5. try:
  6. napis = input()
  7. entery += 1
  8. except:
  9. kody[10] = entery
  10. pary = sorted([(key, kody[key]) for key in kody])
  11. for para in pary:
  12. print(para[0], para[1])
  13. quit()
  14.  
  15. for znak in napis:
  16. kody.setdefault(ord(znak), 0)
  17. kody[ord(znak)] += 1
  18. main()
Success #stdin #stdout 0.02s 9232KB
stdin
753377 2007-03-31 18:03:10 Przecięcie w Zbiorze Odcinków	internal error 0.00 0k C++
753059 2007-03-31 15:51:07 Przecięcie w Zbiorze Odcinków	wrong answer 0.25 5.6M C++
stdout
9 2
10 2
32 20
43 4
45 4
46 3
48 15
49 6
50 3
51 8
53 7
54 1
55 7
56 1
57 1
58 4
67 2
77 1
79 2
80 2
90 2
97 2
98 2
99 6
100 2
101 9
103 1
105 9
107 3
108 1
110 6
111 4
114 10
115 1
116 1
119 6
122 4
243 2
281 2