-
-
Save parzibyte/78981bd14c8be6befcd230fa0c75fabd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
https://parzibyte.me/blog | |
""" | |
primera_linea = input().split(" ") | |
respuestas = input().split(" ") | |
examenes = int(primera_linea[0]) | |
examenes_recordados = int(primera_linea[1]) | |
copias_detectadas_por_profesor = 0 | |
copias_detectadas_por_programa = 0 | |
for i in range(examenes): | |
respuesta = respuestas[i] | |
if respuesta in respuestas[:i]: | |
copias_detectadas_por_programa += 1 | |
if respuesta in respuestas[i-examenes_recordados:i]: | |
copias_detectadas_por_profesor += 1 | |
print(f"{copias_detectadas_por_profesor} {copias_detectadas_por_programa}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment