Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Obtener las entradas
- cantidadDeVotantes = int(input())
- votantesRegistrados = input().split() # Retorna una lista
- cantidadDeVotantesPresentados = int(input())
- votantesPresentados = input().split() # Retorna una lista
- # Filtrar los votantes registrados
- votantesNoRegistrados = list(filter(lambda x: not x in votantesRegistrados, votantesPresentados))
- cantidadDeVotantesNoRegistrados = len(votantesNoRegistrados)
- # Formatear votantesNoRegistrados
- votantesNoRegistrados = ' '.join(value for value in votantesNoRegistrados )
- # Imprimir salidas
- print(cantidadDeVotantesNoRegistrados)
- print(votantesNoRegistrados)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement