Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.008 s | 3 KBi |
#2 |
Correcto
|
0.027 s | 3 KBi |
#3 |
Correcto
|
0.008 s | 3 KBi |
#4 |
Correcto
|
0.008 s | 3 KBi |
#5 |
Correcto
|
0.008 s | 3 KBi |
#6 |
Correcto
|
0.008 s | 3 KBi |
#7 |
Correcto
|
0.021 s | 3 KBi |
#8 |
Correcto
|
0.008 s | 3 KBi |
#9 |
Correcto
|
0.02 s | 3 KBi |
#10 |
Correcto
|
0.033 s | 6 KBi |
#11 |
Correcto
|
0.075 s | 14 KBi |
#12 |
Correcto
|
0.114 s | 14 KBi |
#13 |
Correcto
|
0.067 s | 14 KBi |
N = input() edifs = list(map(int, input().split(' '))) C = int(input()) for i in range(C): case = list(map(int, input().split(' '))) maxim = 0 for j in reversed(range(case[0], case[1] + 1)): # print(j) if edifs[j] >= maxim: maxim = edifs[j] maxIndex = j print(maxIndex)