Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.072 s | 4 KBi |
#2 |
Incorrecto
|
0.044 s | 4 KBi |
#3 |
Incorrecto
|
0.035 s | 4 KBi |
#4 |
Incorrecto
|
0.031 s | 4 KBi |
#5 |
Correcto
|
0.037 s | 4 KBi |
#6 |
Incorrecto
|
0.038 s | 4 KBi |
#7 |
Incorrecto
|
0.089 s | 8 KBi |
#8 |
Correcto
|
0.036 s | 4 KBi |
#9 |
Incorrecto
|
0.037 s | 4 KBi |
#10 |
Incorrecto
|
0.038 s | 4 KBi |
import re n = int(input()) list_n = [int(x) for x in re.findall("-?\d", input())] c = int(input()) c_list = [int(input()) for _ in range(c)] count = 0 for i in range(len(c_list)): ci = c_list[i] for j in range(n): nj = list_n[j] count += 1 if nj > ci else 0 print(count) count = 0