Guest User

Untitled

a guest
Nov 21st, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. numeros ={}
  2.  
  3. for i in range(int(input())):
  4. n = int(input())
  5. if n not in numeros:
  6. numeros[n] = 1
  7. else:
  8. numeros[n] += 1
  9.  
  10. for key in sorted(numeros):
  11. print('{} aparece {} vez(es)'.format(key, numeros[key]))
Add Comment
Please, Sign In to add comment