Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.01 s | 3 KBi |
#2 |
Correcto
|
0.01 s | 3 KBi |
#3 |
Correcto
|
0.018 s | 3 KBi |
#4 |
Correcto
|
0.031 s | 3 KBi |
#5 |
Correcto
|
0.007 s | 3 KBi |
#6 |
Correcto
|
0.024 s | 4 KBi |
#7 |
Correcto
|
0.047 s | 3 KBi |
#8 |
Correcto
|
0.01 s | 3 KBi |
#9 |
Correcto
|
0.011 s | 3 KBi |
#10 |
Correcto
|
0.014 s | 3 KBi |
#11 |
Correcto
|
0.072 s | 14 KBi |
#12 |
Correcto
|
0.041 s | 14 KBi |
#13 |
Correcto
|
0.099 s | 14 KBi |
n = int(input()) p = input() f = [int(x) for x in p.split()] n = int(input()) while (n): p = input() x, y = [int(x) for x in p.split()] k = f[x:y+1] o = k.index(max(k)) print(x + o) n -= 1