Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.01 s | 3 KBi |
#2 |
Incorrecto
|
0.008 s | 3 KBi |
#3 |
Incorrecto
|
0.008 s | 3 KBi |
#4 |
Incorrecto
|
0.011 s | 3 KBi |
#5 |
Incorrecto
|
0.01 s | 3 KBi |
#6 |
Incorrecto
|
0.012 s | 3 KBi |
#7 |
Incorrecto
|
0.012 s | 3 KBi |
#8 |
Incorrecto
|
0.013 s | 3 KBi |
#9 |
Incorrecto
|
0.012 s | 3 KBi |
#10 |
Incorrecto
|
0.011 s | 3 KBi |
def consultar(lista, queries): results = [] for x in queries: value = sum(1 for n in lista if n > x) results.append(value) return results n = int(input()) lista = [int(n) for n in input().split()] c = int(input()) queries = [] for _ in range(c): queries.append(int(input())) consultar(lista, queries)