Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.027 s | 3 KBi |
#2 |
Incorrecto
|
0.015 s | 3 KBi |
#3 |
Incorrecto
|
0.025 s | 3 KBi |
#4 |
Incorrecto
|
0.015 s | 3 KBi |
#5 |
Incorrecto
|
0.02 s | 3 KBi |
#6 |
Incorrecto
|
0.017 s | 3 KBi |
#7 |
Incorrecto
|
0.021 s | 3 KBi |
#8 |
Incorrecto
|
0.018 s | 3 KBi |
#9 |
Incorrecto
|
0.016 s | 3 KBi |
#10 |
Incorrecto
|
0.023 s | 3 KBi |
length_array = int(input()) numbers = [int(x) for x in input().split()] length_consults = int(input()) consults_numbers = [] for i in range(0,3): consults_numbers.append(int(input())) def get_consult(numbers, consult_nbr): counter = 0 for element in numbers: if element> consult_nbr: counter = counter + 1 return counter for consult_nbr in consults_numbers: print(get_consult(numbers, consult_nbr))