Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.02 s | 3 KBi |
#2 |
Correcto
|
0.018 s | 3 KBi |
#3 |
Correcto
|
0.018 s | 3 KBi |
#4 |
Correcto
|
0.018 s | 3 KBi |
#5 |
Correcto
|
0.02 s | 3 KBi |
#6 |
Correcto
|
0.017 s | 3 KBi |
#7 |
Correcto
|
0.026 s | 3 KBi |
#8 |
Correcto
|
0.023 s | 3 KBi |
#9 |
Correcto
|
0.02 s | 3 KBi |
#10 |
Correcto
|
0.02 s | 3 KBi |
a = [] a_aux = [] count = 0 search = [] N = int(input()) [a_aux.append(x) for x in input().split(' ')] for num in range(N): x = int(a_aux[num]) a.append(x) C = int(input()) for x in range(C): n = int(input()) search.append(n) for i in range(C): count = 0 for j in range(N): if search[i] < a[j]: count += 1 else: continue print (count)