fork(1) download
  1. def main():
  2. entery = 0
  3. kody = [0] * 1000
  4. while True:
  5. try:
  6. napis = input()
  7. entery += 1
  8. except:
  9. kody[10] = entery
  10. for i in range(260):
  11. if kody[i] != 0:
  12. print(i, kody[i])
  13. quit()
  14.  
  15. for znak in napis:
  16. kody[ord(znak)] += 1
  17.  
  18. main()
Success #stdin #stdout 0.02s 9236KB
stdin
f;gg;a23;r req; re....q rq
reekkjkjk***7&&&$
stdout
10 2
32 3
36 1
38 3
42 3
46 4
50 1
51 1
55 1
59 4
97 1
101 4
102 1
103 2
106 2
107 4
113 3
114 5