Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 13, in <module> if consultas[j] > elementos[i]: IndexError: list index out of range |
0.025 s | 3 KBi |
#2 |
Incorrecto
|
0.022 s | 3 KBi |
#3 |
Incorrecto
|
0.032 s | 3 KBi |
#4 |
Incorrecto
|
0.025 s | 3 KBi |
#5 |
Incorrecto
|
0.023 s | 3 KBi |
#6 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 13, in <module> if consultas[j] > elementos[i]: IndexError: list index out of range |
0.031 s | 3 KBi |
#7 |
Incorrecto
|
0.025 s | 3 KBi |
#8 |
Incorrecto
|
0.027 s | 3 KBi |
#9 |
Incorrecto
|
0.03 s | 3 KBi |
#10 |
Incorrecto
|
0.027 s | 3 KBi |
n_elementos = int(input()) elementos = [int(x) for x in input().split(" ",n_elementos-1)] n_consultas = int(input()) consultas = [] for i in range(0, n_consultas-1): consultas.append(int(input())) for i in range(0, n_consultas-1): contador = 0 for j in range(0, n_elementos-1): if consultas[j] > elementos[i]: contador += 1 print(contador)